Commit b6071feb authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

If we know an beresp.body is zero bytes long, zap any Content-Encoding: it

might have, it doesn't make any sense.

Fixes	#1602
parent 0929e834
......@@ -526,6 +526,9 @@ vbf_stp_fetch(struct worker *wrk, struct busyobj *bo)
if (!cache_param->http_gzip_support)
bo->do_gzip = bo->do_gunzip = 0;
if (bo->htc->content_length == 0)
http_Unset(bo->beresp, H_Content_Encoding);
bo->is_gzip = http_HdrIs(bo->beresp, H_Content_Encoding, "gzip");
bo->is_gunzip = !http_GetHdr(bo->beresp, H_Content_Encoding, NULL);
......
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