Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
e5e43bd2
Commit
e5e43bd2
authored
Feb 23, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure to initialize the the {do|is}_gzip variables to zero
before we start setting them otherwise.
parent
7b9df557
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
cache_center.c
bin/varnishd/cache_center.c
+5
-0
r00861.vtc
bin/varnishtest/tests/r00861.vtc
+2
-0
No files found.
bin/varnishd/cache_center.c
View file @
e5e43bd2
...
...
@@ -1153,6 +1153,11 @@ cnt_recv(struct sess *sp)
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
&&
(
recv_handling
!=
VCL_RET_PIPE
)
&&
(
recv_handling
!=
VCL_RET_PASS
))
{
...
...
bin/varnishtest/tests/r00861.vtc
View file @
e5e43bd2
...
...
@@ -36,6 +36,8 @@ varnish v1 \
client c1 {
txreq -url "/1"
rxresp
expect resp.http.Content-Encoding == resp.http.Content-Encoding
expect resp.bodylen == 22
txreq -url "/barf" -hdr "Accept-Encoding: gzip"
rxresp
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment