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
911194b2
Commit
911194b2
authored
Feb 24, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collect code for increased clarity
parent
6801c396
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
cache_fetch.c
bin/varnishd/cache/cache_fetch.c
+6
-8
No files found.
bin/varnishd/cache/cache_fetch.c
View file @
911194b2
...
...
@@ -422,21 +422,19 @@ vbf_stp_fetch(struct worker *wrk, struct busyobj *bo)
if
(
bo
->
do_gunzip
&&
!
bo
->
is_gzip
)
bo
->
do_gunzip
=
0
;
/* If we do gunzip, remove the C-E header */
if
(
bo
->
do_gunzip
)
http_Unset
(
bo
->
beresp
,
H_Content_Encoding
);
/* We wont gzip unless it is ungziped */
if
(
bo
->
do_gzip
&&
!
bo
->
is_gunzip
)
bo
->
do_gzip
=
0
;
/* If we do gzip, add the C-E header */
if
(
bo
->
do_gzip
)
http_SetHeader
(
bo
->
beresp
,
"Content-Encoding: gzip"
);
/* But we can't do both at the same time */
assert
(
bo
->
do_gzip
==
0
||
bo
->
do_gunzip
==
0
);
/* Fix Content-Encoding, as appropriate */
if
(
bo
->
do_gzip
)
http_SetHeader
(
bo
->
beresp
,
"Content-Encoding: gzip"
);
else
if
(
bo
->
do_gunzip
)
http_Unset
(
bo
->
beresp
,
H_Content_Encoding
);
AN
(
bo
->
vbc
);
est
=
V1F_Setup_Fetch
(
bo
);
...
...
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