]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Sync to trunk/, add an extra measure of paranoia to the cl + te case.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 8 Aug 2005 03:10:10 +0000 (03:10 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 8 Aug 2005 03:10:10 +0000 (03:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/proxy-reqbody-2.0.x@230738 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_http.c

index 8f2a5e4ea6cf7d34df635e20d4ba3a47cb822a96..3f02e479a46ac8cc4bd131cd9daca7f350c7be6b 100644 (file)
@@ -1048,6 +1048,8 @@ apr_status_t ap_proxy_http_request(apr_pool_t *p, request_rec *r,
                      "proxy: client %s (%s) requested Transfer-Encoding body"
                      " with Content-Length (C-L ignored)",
                      c->remote_ip, c->remote_host ? c->remote_host: "");
+        apr_table_unset(r->headers_in, "Content-Length");
+        old_cl_val = NULL;
         origin->keepalive = AP_CONN_CLOSE;
         p_conn->close++;
     }