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

Make sure to initialize the the {do|is}_gzip variables to zero

before we start setting them otherwise.
parent 7b9df557
...@@ -1153,6 +1153,11 @@ cnt_recv(struct sess *sp) ...@@ -1153,6 +1153,11 @@ cnt_recv(struct sess *sp)
return (0); return (0);
} }
sp->wrk->is_gzip = 0;
sp->wrk->is_gunzip = 0;
sp->wrk->do_gzip = 0;
sp->wrk->do_gunzip = 0;
if (params->http_gzip_support && if (params->http_gzip_support &&
(recv_handling != VCL_RET_PIPE) && (recv_handling != VCL_RET_PIPE) &&
(recv_handling != VCL_RET_PASS)) { (recv_handling != VCL_RET_PASS)) {
......
...@@ -36,6 +36,8 @@ varnish v1 \ ...@@ -36,6 +36,8 @@ varnish v1 \
client c1 { client c1 {
txreq -url "/1" txreq -url "/1"
rxresp rxresp
expect resp.http.Content-Encoding == resp.http.Content-Encoding
expect resp.bodylen == 22
txreq -url "/barf" -hdr "Accept-Encoding: gzip" txreq -url "/barf" -hdr "Accept-Encoding: gzip"
rxresp rxresp
......
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