mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Make sure we clone the table rather than copy it, to ensure that no keys
or values allocated from r->pool end up referenced in the backend request. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1055386 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1813,7 +1813,7 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
|
||||
* TE, so that they are preserved accordingly for
|
||||
* ap_http_filter to know where to end.
|
||||
*/
|
||||
backend->r->headers_in = apr_table_copy(backend->r->pool, r->headers_out);
|
||||
backend->r->headers_in = apr_table_clone(backend->r->pool, r->headers_out);
|
||||
/*
|
||||
* Restore Transfer-Encoding header from response if we saved
|
||||
* one before and there is none left. We need it for the
|
||||
|
Reference in New Issue
Block a user