From: Victor J. Orlikowski Date: Sun, 8 Apr 2001 07:52:33 +0000 (+0000) Subject: As in the case of 1.3, there are expected cases where this should not X-Git-Tag: 2.0.17~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a89e24736d11970f2584c90f39d2e26b67cd951d;p=apache As in the case of 1.3, there are expected cases where this should not return a port (i.e. a uri beginning with /). Thus, we keep the default case fast, and let module authors check back on the port being set on their own. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88764 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_uri.c b/server/util_uri.c index bb97df3254..508c6f199c 100644 --- a/server/util_uri.c +++ b/server/util_uri.c @@ -289,7 +289,6 @@ deal_with_host: if (s == NULL) { /* we expect the common case to have no port */ uptr->hostname = apr_pstrndup(p, hostinfo, uri - hostinfo); - uptr->port = uptr->scheme ? ap_default_port_for_scheme(uptr->scheme) : DEFAULT_HTTP_PORT; goto deal_with_path; } uptr->hostname = apr_pstrndup(p, hostinfo, s - hostinfo);