]> err.no Git - varnish/commit
RFC 2616 says "All 1xx (informational), 204 (no content), and 304 (not
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 5 Oct 2006 11:57:35 +0000 (11:57 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 5 Oct 2006 11:57:35 +0000 (11:57 +0000)
commite6454b1b6fb1658df9587eb3f9be82c6fa880869
tree27619929c26dcd34105f518e7fe063a756f32d94
parent45fbc7379bec8c8d1e2dcb8a0ac29d26baf34fc1
RFC 2616 says "All 1xx (informational), 204 (no content), and 304 (not
modified) responses MUST NOT include a message-body," so
Content-Length: is not needed in these cases (and Apache does indeed
not include it).  This causes PassBody() to call pass_straight() with
a NULL length argument, which waits until the connection is closed by
the server.  PassBody() should not call pass_*() at all for responses
that are known to be bodyless.

Submitted by: Dagfinn Ilmari MannsÃ¥ker <ilmari@ping.uio.no>

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1138 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache.h
varnish-cache/bin/varnishd/cache_http.c
varnish-cache/bin/varnishd/cache_pass.c