Blame SOURCES/httpd-2.4.6-r1621601.patch
|
|
07ea28 |
|
|
|
07ea28 |
|
|
|
07ea28 |
@@ -1652,6 +1652,18 @@
|
|
|
07ea28 |
if (!r->header_only &&
|
|
|
07ea28 |
(proxy_status != HTTP_NO_CONTENT) &&
|
|
|
07ea28 |
(proxy_status != HTTP_NOT_MODIFIED)) {
|
|
|
07ea28 |
+ const char *tmp;
|
|
|
07ea28 |
+ /* Add minimal headers needed to allow http_in filter
|
|
|
07ea28 |
+ * detecting end of body without waiting for a timeout. */
|
|
|
07ea28 |
+ if ((tmp = apr_table_get(r->headers_out, "Transfer-Encoding"))) {
|
|
|
07ea28 |
+ apr_table_set(backend->r->headers_in, "Transfer-Encoding", tmp);
|
|
|
07ea28 |
+ }
|
|
|
07ea28 |
+ else if ((tmp = apr_table_get(r->headers_out, "Content-Length"))) {
|
|
|
07ea28 |
+ apr_table_set(backend->r->headers_in, "Content-Length", tmp);
|
|
|
07ea28 |
+ }
|
|
|
07ea28 |
+ else if (te) {
|
|
|
07ea28 |
+ apr_table_set(backend->r->headers_in, "Transfer-Encoding", te);
|
|
|
07ea28 |
+ }
|
|
|
07ea28 |
ap_discard_request_body(backend->r);
|
|
|
07ea28 |
}
|
|
|
07ea28 |
return proxy_status;
|