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
2e0fb179
Commit
2e0fb179
authored
Nov 30, 2015
by
Federico G. Schwindt
Committed by
Lasse Karstensen
Jan 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update references
parent
dd050f03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cache_fetch.c
bin/varnishd/cache/cache_fetch.c
+4
-4
No files found.
bin/varnishd/cache/cache_fetch.c
View file @
2e0fb179
...
...
@@ -327,14 +327,14 @@ vbf_stp_startfetch(struct worker *wrk, struct busyobj *bo)
/*
* A HEAD request can never have a body in the reply,
* no matter what the headers might say.
* [RFC
2516 4.3 p33
]
* [RFC
7231 4.3.2 p25
]
*/
wrk
->
stats
->
fetch_head
++
;
bo
->
htc
->
body_status
=
BS_NONE
;
}
else
if
(
http_GetStatus
(
bo
->
beresp
)
<=
199
)
{
/*
* 1xx responses never have a body.
* [RFC
2616 4.3 p33
]
* [RFC
7230 3.3.2 p31
]
* ... but we should never see them.
*/
wrk
->
stats
->
fetch_1xx
++
;
...
...
@@ -342,7 +342,7 @@ vbf_stp_startfetch(struct worker *wrk, struct busyobj *bo)
}
else
if
(
http_IsStatus
(
bo
->
beresp
,
204
))
{
/*
* 204 is "No Content", obviously don't expect a body.
* [RFC7230 3.3.1 p2
8 and 3.3.2 p30
]
* [RFC7230 3.3.1 p2
9 and 3.3.2 p31
]
*/
wrk
->
stats
->
fetch_204
++
;
if
(
http_GetHdr
(
bo
->
beresp
,
H_Content_Length
,
NULL
)
||
...
...
@@ -353,7 +353,7 @@ vbf_stp_startfetch(struct worker *wrk, struct busyobj *bo)
}
else
if
(
http_IsStatus
(
bo
->
beresp
,
304
))
{
/*
* 304 is "Not Modified" it has no body.
* [RFC
2616 10.3.5 p63
]
* [RFC
7230 3.3 p28
]
*/
wrk
->
stats
->
fetch_304
++
;
bo
->
htc
->
body_status
=
BS_NONE
;
...
...
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