Blame SOURCES/httpd-2.4.6-r1621601.patch
|
|
008793 |
--- a/modules/proxy/mod_proxy_http.c 2014/08/31 16:06:36 1621600
|
|
|
008793 |
+++ b/modules/proxy/mod_proxy_http.c 2014/08/31 16:07:45 1621601
|
|
|
008793 |
@@ -1652,6 +1652,18 @@
|
|
|
008793 |
if (!r->header_only && /* not HEAD request */
|
|
|
008793 |
(proxy_status != HTTP_NO_CONTENT) && /* not 204 */
|
|
|
008793 |
(proxy_status != HTTP_NOT_MODIFIED)) { /* not 304 */
|
|
|
008793 |
+ const char *tmp;
|
|
|
008793 |
+ /* Add minimal headers needed to allow http_in filter
|
|
|
008793 |
+ * detecting end of body without waiting for a timeout. */
|
|
|
008793 |
+ if ((tmp = apr_table_get(r->headers_out, "Transfer-Encoding"))) {
|
|
|
008793 |
+ apr_table_set(backend->r->headers_in, "Transfer-Encoding", tmp);
|
|
|
008793 |
+ }
|
|
|
008793 |
+ else if ((tmp = apr_table_get(r->headers_out, "Content-Length"))) {
|
|
|
008793 |
+ apr_table_set(backend->r->headers_in, "Content-Length", tmp);
|
|
|
008793 |
+ }
|
|
|
008793 |
+ else if (te) {
|
|
|
008793 |
+ apr_table_set(backend->r->headers_in, "Transfer-Encoding", te);
|
|
|
008793 |
+ }
|
|
|
008793 |
ap_discard_request_body(backend->r);
|
|
|
008793 |
}
|
|
|
008793 |
return proxy_status;
|