]> granicus.if.org Git - apache/commitdiff
Also translate Destination headers when ProxyPassReverse'd
authorSander Striker <striker@apache.org>
Thu, 3 Feb 2005 23:04:04 +0000 (23:04 +0000)
committerSander Striker <striker@apache.org>
Thu, 3 Feb 2005 23:04:04 +0000 (23:04 +0000)
* 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

modules/proxy/ajp_header.c
modules/proxy/mod_proxy_http.c

index bd9e1e515e2261ec8a607306ac8dea7f23b0654a..44c666e84394d7fdabded6408e1b5ed98c56916a 100644 (file)
@@ -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);
         }
index f3794270b1c89accd566919ccdd3422834435aed..76d7e6ac9aec03a244045afe659526e3d63cdb1f 100644 (file)
@@ -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 }
     } ;