1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

Switch preference for headers, Transfer-Encoding

first, Content-Length second.

Addition to r1615289.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1620324 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Rainer Jung
2014-08-25 13:44:03 +00:00
parent d144194cc8
commit 5002fd13e7

View File

@@ -1640,12 +1640,12 @@ int ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
const char *tmp; const char *tmp;
/* Add minimal headers needed to allow http_in filter /* Add minimal headers needed to allow http_in filter
* detecting end of body without waiting for a timeout. */ * detecting end of body without waiting for a timeout. */
if ((tmp = apr_table_get(r->headers_out, "Content-Length"))) { if ((tmp = apr_table_get(r->headers_out, "Transfer-Encoding"))) {
apr_table_set(backend->r->headers_in, "Content-Length", tmp);
}
else if ((tmp = apr_table_get(r->headers_out, "Transfer-Encoding"))) {
apr_table_set(backend->r->headers_in, "Transfer-Encoding", tmp); 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) { else if (te) {
apr_table_set(backend->r->headers_in, "Transfer-Encoding", te); apr_table_set(backend->r->headers_in, "Transfer-Encoding", te);
} }