]> granicus.if.org Git - apache/commitdiff
mod_proxy: Don't remove the Content-Length from responses
authorBrian Pane <brianp@apache.org>
Thu, 5 Dec 2002 03:49:45 +0000 (03:49 +0000)
committerBrian Pane <brianp@apache.org>
Thu, 5 Dec 2002 03:49:45 +0000 (03:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97777 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/proxy/proxy_http.c

diff --git a/CHANGES b/CHANGES
index 6e8aaf49329e12c2bf9ed5718ed62c9ce610e470..d222e04c5125067efe0bd573be0fd98af95981d5 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@ Changes with Apache 2.1.0-dev
 
   [Remove entries to the current 2.0 section below, when backported]
 
+  *) Don't remove the Content-Length from responses in mod_proxy
+     [Brian Pane]
+
   *) Move the check of the Expect request header field after the hook
      for ap_post_read_request, since that is the only opportunity for
      modules to handle Expect extensions.  [Justin Erenkrantz]
index 4720e7fe91ed800dcbffd414c72573783b61faba..b0aa9aa09815b1f1c152b0030a9fe8fe22ceca70 100644 (file)
@@ -907,16 +907,12 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
 
             /* We need to copy the output headers and treat them as input
              * headers as well.  BUT, we need to do this before we remove
-             * TE and C-L, so that they are preserved accordingly for
+             * TE, so that they are preserved accordingly for
              * ap_http_filter to know where to end.
              */
             rp->headers_in = apr_table_copy(r->pool, r->headers_out);
 
-            /* 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");
 
             ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
                          "proxy: start body send");