[Varnish] #400: HTTP/1.0 404 Not Found + no Content-Length => no content
Varnish
varnish-bugs at projects.linpro.no
Thu Dec 18 12:30:06 CET 2008
#400: HTTP/1.0 404 Not Found + no Content-Length => no content
----------------------+-----------------------------------------------------
Reporter: jfbubus | Owner: phk
Type: defect | Status: closed
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: normal | Resolution: fixed
Keywords: |
----------------------+-----------------------------------------------------
Changes (by phk):
* status: new => closed
* resolution: => fixed
Comment:
(In [3470]) Change the logic that decides when we attempt EOF fetches from
the
backend.
The new logic is:
If (HEAD) /* happens only on pass */
do not fetch body.
else if (Content-Length)
fetch body according to length
else if (chunked)
fetch body as chunked
else if (other transfer-encoding)
fail
else if (Connection: keep-alive)
fetch no body, set Length = 0
else if (Connection: close)
fetch body until EOF
else if (HTTP < 1.1)
fetch body until EOF
else
fetch no body, set Length = 0
let me know if this breaks anything that should work.
Fixes #400
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/400#comment:2>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list