Commit c94185ee authored by Graham Leggett's avatar Graham Leggett
Browse files

Fixed problem where the port was left at zero on requests instead of

being set to the default scheme port 80
PR:
Obtained from:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88746 13f79535-47bb-0310-9956-ffa450edef68
parent 3bf12f1a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -204,6 +204,9 @@ int ap_proxy_http_handler(request_rec *r, char *url,
	return ap_proxyerror(r, HTTP_BAD_REQUEST,
			     apr_pstrcat(p,"URI cannot be parsed: ", url, NULL));
    }
    if (!uri.port) {
	uri.port = ap_default_port_for_scheme(uri.scheme);
    }

    ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
		 "proxy: HTTP connecting %s to %s:%d", url, uri.hostname, uri.port);