From: Nick Kew Date: Sun, 23 Aug 2009 20:30:47 +0000 (+0000) Subject: Preserve port over internal redirection X-Git-Tag: 2.3.3~380 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95d288c21245aef2847259462aa6f2a02b0c9fb1;p=apache Preserve port over internal redirection 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 --- diff --git a/CHANGES b/CHANGES index bb20d9da7e..39a932fb35 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.3.3 + *) Preserve Port information over internal redirects + PR 35999 [Jonas Ringh ] + *) Proxy: unable to connect to a backend is SERVICE_UNAVAILABLE, rather than BAD_GATEWAY or (especially) NOT_FOUND. PR 46971 [evanc nortel.com] diff --git a/modules/http/http_request.c b/modules/http/http_request.c index d1a6c4ca0f..81701f243a 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -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);