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

We need to copy the forward proxy data, because it

might be reused during later requests using the same
backend connection.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@910081 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Rainer Jung
2010-02-14 21:37:36 +00:00
parent 8e6c0bdc8a
commit 92590ca5cd

View File

@@ -2133,7 +2133,7 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r,
forward_info *forward = apr_pcalloc(conn->pool, sizeof(forward_info)); forward_info *forward = apr_pcalloc(conn->pool, sizeof(forward_info));
conn->forward = forward; conn->forward = forward;
forward->use_http_connect = 1; forward->use_http_connect = 1;
forward->target_host = uri->hostname; forward->target_host = apr_pstrdup(conn->pool, uri->hostname);
forward->target_port = uri->port; forward->target_port = uri->port;
/* Do we want to pass Proxy-Authorization along? /* Do we want to pass Proxy-Authorization along?
* If we haven't used it, then YES * If we haven't used it, then YES
@@ -2146,7 +2146,7 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r,
proxy_auth[0] != '\0' && proxy_auth[0] != '\0' &&
r->user == NULL && /* we haven't yet authenticated */ r->user == NULL && /* we haven't yet authenticated */
apr_table_get(r->subprocess_env, "Proxy-Chain-Auth")) { apr_table_get(r->subprocess_env, "Proxy-Chain-Auth")) {
forward->proxy_auth = proxy_auth; forward->proxy_auth = apr_pstrdup(conn->pool, proxy_auth);
} }
} }
} }