folks, the same patch Paul/Joe worked out for 2.1, then 2.0,
should still probably fall on 1.3 even though proxy is not
affected. Other modules surely could be hit.
Votes/Comments? I think this is it for getting 1.3.34 out.
Index: src/main/http_protocol.c
===================================================================
--- src/main/http_protocol.c (revision 209835)
+++ src/main/http_protocol.c (working copy)
@@ -1214,6 +1214,14 @@
ap_log_transaction(r);
return r;
}
+ if (apr_table_get(r->headers_in, "Transfer-Encoding")
+ && apr_table_get(r->headers_in, "Content-Length")) {
+ /* 2616 section 4.4, point 3: "if both Transfer-Encoding
+ * and Content-Length are received, the latter MUST be
+ * ignored"; so unset it here to prevent any confusion
+ * later. */
+ apr_table_unset(r->headers_in, "Content-Length");
+ }
}
else {
ap_kill_timeout(r);