httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
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.
              */
             apr_table_unset(r->headers_out,"Transfer-Encoding");
             apr_table_unset(r->headers_out,"Content-Length");

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 
response.

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?

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm 
	"There's a moon
					over Bourbon Street
						tonight..."


Mime
View raw message