• Poul-Henning Kamp's avatar
    Change the logic that decides when we attempt EOF fetches from the · 342b577c
    Poul-Henning Kamp authored
    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
    
    
    
    git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3470 d4fa192b-c00b-0410-8231-f00ffab90ce4
    342b577c
Name
Last commit
Last update
bin Loading commit data...
doc Loading commit data...
etc Loading commit data...
include Loading commit data...
lib Loading commit data...
man Loading commit data...
redhat Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
varnishapi.pc.in Loading commit data...