ap_parse_uri_components to not fill in the port field in certain cases,
i.e. wherein the uri begins with /
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88762
13f79535-47bb-0310-9956-
ffa450edef68
if (scheme == NULL)
scheme = ap_http_method(r);
+ /* insert a port if the URI did not contain one */
+ if (comp.port == 0)
+ comp.port = ap_default_port_for_scheme(comp.scheme);
+
/* now, verify that the URI uses the same scheme as the current request.
the port, must match our port.
the URI must not have a query (args) or a fragment