Commit 2c8505ba authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

VGZ_OK is acceptable at end of gzip objects.

Fixes	#891
parent 1ef67408
......@@ -640,9 +640,9 @@ vfp_testgzip_bytes(struct sess *sp, struct http_conn *htc, ssize_t bytes)
}
}
}
if (i == Z_STREAM_END)
if (i == VGZ_OK || i == VGZ_END)
return (1);
WSP(sp, SLT_FetchError, "Incomplete Gzip data (not STREAM_END)");
WSP(sp, SLT_FetchError, "Gunzip trouble (%d)", i);
return (-1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment