chunked encoding never gets turned on because by the time
ap_set_keepalive() is called, ap_content_length_filter has set
r->headers_out.Content-Length
with this patch chunked encoding works fine, but i'm not sure if it is
the correct fix.
Index: modules/http/http_protocol.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/http/http_protocol.c,v
retrieving revision 1.356
diff -u -r1.356 http_protocol.c
--- modules/http/http_protocol.c 2001/08/24 20:38:27 1.356
+++ modules/http/http_protocol.c 2001/08/26 03:11:54
@@ -136,7 +136,6 @@
&& ((r->status == HTTP_NOT_MODIFIED)
|| (r->status == HTTP_NO_CONTENT)
|| r->header_only
- || apr_table_get(r->headers_out, "Content-Length")
|| ap_find_last_token(r->pool,
apr_table_get(r->headers_out,
"Transfer-Encoding"),
@@ -1226,8 +1225,6 @@
if (r->chunked) {
apr_table_mergen(r->headers_out, "Transfer-Encoding", "chunked");
- apr_table_unset(r->headers_out, "Content-Length");
-
}
apr_table_setn(r->headers_out, "Content-Type", ap_make_content_type(r,