httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <>
Subject proxy fiddling with Content-Length
Date Wed, 21 Aug 2002 07:40:14 GMT
Hi all,

In the v2.0 proxy, the following code exists:

             /* In order for ap_set_keepalive to work properly, we can NOT
              * have any length information stored in the output headers.

In HTTP/1.1 requests, the content-length is stripped and chunked 
encoding occurs as a result on any response that cannot be buffered in 
it's entirity resulting in a readded content-length. This breaks client 
progress counters, because the client doesn't know the length of the 

In HTTP/1.0 requests, no indication of content length is provided at all.

Surely the correct fix is to make sure that ap_set_keepalive() and 
friends should behave intelligently in the presence of an existing 
content-length header, rather than just expecting the header to not be 
there in the first place?

	"There's a moon
					over Bourbon Street

View raw message