From: Sander Striker Date: Thu, 3 Feb 2005 23:04:04 +0000 (+0000) Subject: Also translate Destination headers when ProxyPassReverse'd X-Git-Tag: 2.1.3~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15ec543f2b89488e62cceea4888087a8f765ae08;p=thirdparty%2Fapache%2Fhttpd.git Also translate Destination headers when ProxyPassReverse'd * modules\proxy\mod_proxy_http.c (process_proxy_header): reverse map Destination header. NOTE: This is some darn nasty looking code... * modules\proxy\ajp_header.c (ajp_unmarshal_response): reverse map Destination header. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151246 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/ajp_header.c b/modules/proxy/ajp_header.c index bd9e1e515e2..44c666e8439 100644 --- a/modules/proxy/ajp_header.c +++ b/modules/proxy/ajp_header.c @@ -535,10 +535,12 @@ static apr_status_t ajp_unmarshal_response(ajp_msg_t *msg, if (!strcasecmp(stringname, "Set-Cookie")) { value = ap_proxy_cookie_reverse_map(r, conf, value); } - /* Location, Content-Location and URI need additional processing */ + /* Location, Content-Location, URI and Destination need additional + * processing */ else if (!strcasecmp(stringname, "Location") || !strcasecmp(stringname, "Content-Location") - || !strcasecmp(stringname, "URI")) + || !strcasecmp(stringname, "URI") + || !strcasecmp(stringname, "Destination")) { value = ap_proxy_location_reverse_map(r, conf, value); } diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index f3794270b1c..76d7e6ac9ae 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -849,6 +849,7 @@ static void process_proxy_header(request_rec* r, proxy_server_conf* c, { "Location", ap_proxy_location_reverse_map } , { "Content-Location", ap_proxy_location_reverse_map } , { "URI", ap_proxy_location_reverse_map } , + { "Destination", ap_proxy_location_reverse_map } , { "Set-Cookie", ap_proxy_cookie_reverse_map } , { NULL, NULL } } ;