summaryrefslogtreecommitdiffstats
path: root/modules/dav/main/util.c
diff options
context:
space:
mode:
authorVictor J. Orlikowski <orlikowski@apache.org>2001-04-08 09:13:42 +0200
committerVictor J. Orlikowski <orlikowski@apache.org>2001-04-08 09:13:42 +0200
commitc56a43e1b98bf586352d46bcddb0be4c2dda01c2 (patch)
treee6fe54451d07969faf2282b0963d12b4fa170704 /modules/dav/main/util.c
parentMake the CONNECT proxy talk HTTP/1.1. Still need to check if this is (diff)
downloadapache2-c56a43e1b98bf586352d46bcddb0be4c2dda01c2.tar.xz
apache2-c56a43e1b98bf586352d46bcddb0be4c2dda01c2.zip
Backing my earlier change out; There exists the possibility for
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
Diffstat (limited to 'modules/dav/main/util.c')
-rw-r--r--modules/dav/main/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/dav/main/util.c b/modules/dav/main/util.c
index ea535fee94..12929f7e46 100644
--- a/modules/dav/main/util.c
+++ b/modules/dav/main/util.c
@@ -211,6 +211,10 @@ dav_lookup_result dav_lookup_uri(const char *uri, request_rec * r)
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