httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r1620324 - /httpd/httpd/trunk/modules/proxy/mod_proxy_http.c
Date Mon, 25 Aug 2014 13:44:04 GMT
Author: rjung
Date: Mon Aug 25 13:44:03 2014
New Revision: 1620324

URL: http://svn.apache.org/r1620324
Log:
Switch preference for headers, Transfer-Encoding
first, Content-Length second.

Addition to r1615289.

Modified:
    httpd/httpd/trunk/modules/proxy/mod_proxy_http.c

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_http.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_http.c?rev=1620324&r1=1620323&r2=1620324&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_http.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_http.c Mon Aug 25 13:44:03 2014
@@ -1640,12 +1640,12 @@ int ap_proxy_http_process_response(apr_p
                 const char *tmp;
                 /* Add minimal headers needed to allow http_in filter
                  * detecting end of body without waiting for a timeout. */
-                if ((tmp = apr_table_get(r->headers_out, "Content-Length"))) {
-                    apr_table_set(backend->r->headers_in, "Content-Length", tmp);
-                }
-                else if ((tmp = apr_table_get(r->headers_out, "Transfer-Encoding"))) {
+                if ((tmp = apr_table_get(r->headers_out, "Transfer-Encoding"))) {
                     apr_table_set(backend->r->headers_in, "Transfer-Encoding", tmp);
                 }
+                else if ((tmp = apr_table_get(r->headers_out, "Content-Length"))) {
+                    apr_table_set(backend->r->headers_in, "Content-Length", tmp);
+                }
                 else if (te) {
                     apr_table_set(backend->r->headers_in, "Transfer-Encoding", te);
                 }



Mime
View raw message