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

* Fix the logic to follow the comment. So far we only forwarded the header if

we have NOT used it AND the env variable was set. But if we have not
  used it we should forward it in any case independent of the env variable
  setting.
  This aligns also with the behaviour in ap_proxy_create_hdrbrgd.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1859713 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ruediger Pluem
2019-05-22 09:54:05 +00:00
parent a91c9c1ed7
commit a84a80c1e5

View File

@@ -2528,8 +2528,8 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r,
proxy_auth = apr_table_get(r->headers_in, "Proxy-Authorization"); proxy_auth = apr_table_get(r->headers_in, "Proxy-Authorization");
if (proxy_auth != NULL && if (proxy_auth != NULL &&
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 = apr_pstrdup(conn->pool, proxy_auth); forward->proxy_auth = apr_pstrdup(conn->pool, proxy_auth);
} }
} }