]> granicus.if.org Git - apache/commitdiff
Preserve port over internal redirection
authorNick Kew <niq@apache.org>
Sun, 23 Aug 2009 20:30:47 +0000 (20:30 +0000)
committerNick Kew <niq@apache.org>
Sun, 23 Aug 2009 20:30:47 +0000 (20:30 +0000)
PR#35999
A four-year-old buglet!

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@807015 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/http/http_request.c

diff --git a/CHANGES b/CHANGES
index bb20d9da7e3476777dd7c0170d4921376f345a58..39a932fb35340760fa4252beab171e57c5e46408 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@
 
 Changes with Apache 2.3.3
 
+  *) Preserve Port information over internal redirects
+     PR 35999 [Jonas Ringh <jonas.ringh cixit.se>]
+
   *) Proxy: unable to connect to a backend is SERVICE_UNAVAILABLE,
      rather than BAD_GATEWAY or (especially) NOT_FOUND.
      PR 46971 [evanc nortel.com]
index d1a6c4ca0f0dae113526e438330617499f1150d1..81701f243afb954608ea8d6e8620547889d870f1 100644 (file)
@@ -412,6 +412,8 @@ static request_rec *internal_internal_redirect(const char *new_uri,
     new->method_number   = r->method_number;
     new->allowed_methods = ap_make_method_list(new->pool, 2);
     ap_parse_uri(new, new_uri);
+    new->parsed_uri.port_str = r->parsed_uri.port_str;
+    new->parsed_uri.port = r->parsed_uri.port;
 
     new->request_config = ap_create_request_config(r->pool);