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
0a7e6caa
Commit
0a7e6caa
authored
Aug 26, 2013
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix duplicate Content-Length headers with pass and stream
Fixes: #1272 Patch by: ehocdet
parent
88d785b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
cache_response.c
bin/varnishd/cache_response.c
+3
-1
No files found.
bin/varnishd/cache_response.c
View file @
0a7e6caa
...
@@ -352,9 +352,11 @@ RES_StreamStart(struct sess *sp)
...
@@ -352,9 +352,11 @@ RES_StreamStart(struct sess *sp)
http_Unset
(
sp
->
wrk
->
resp
,
H_Content_Encoding
);
http_Unset
(
sp
->
wrk
->
resp
,
H_Content_Encoding
);
if
(
!
(
sp
->
wrk
->
res_mode
&
RES_CHUNKED
)
&&
if
(
!
(
sp
->
wrk
->
res_mode
&
RES_CHUNKED
)
&&
sp
->
wrk
->
h_content_length
!=
NULL
)
sp
->
wrk
->
h_content_length
!=
NULL
)
{
http_Unset
(
sp
->
wrk
->
resp
,
H_Content_Length
);
http_PrintfHeader
(
sp
->
wrk
,
sp
->
fd
,
sp
->
wrk
->
resp
,
http_PrintfHeader
(
sp
->
wrk
,
sp
->
fd
,
sp
->
wrk
->
resp
,
"Content-Length: %s"
,
sp
->
wrk
->
h_content_length
);
"Content-Length: %s"
,
sp
->
wrk
->
h_content_length
);
}
sp
->
wrk
->
acct_tmp
.
hdrbytes
+=
sp
->
wrk
->
acct_tmp
.
hdrbytes
+=
http_Write
(
sp
->
wrk
,
sp
->
wrk
->
resp
,
1
);
http_Write
(
sp
->
wrk
,
sp
->
wrk
->
resp
,
1
);
...
...
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