]> granicus.if.org Git - apache/commitdiff
No need to lower the string before removing the path, it is just a waste of time.
authorChristophe Jaillet <jailletc36@apache.org>
Fri, 23 Aug 2013 20:41:41 +0000 (20:41 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Fri, 23 Aug 2013 20:41:41 +0000 (20:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1517025 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index 1b62c5d97f78135d7db5b28cac3987551c6d6057..58fa00d9a75e087f428ae7f7086d4787f9e233b2 100644 (file)
@@ -1081,7 +1081,6 @@ PROXY_DECLARE(proxy_balancer *) ap_proxy_get_balancer(apr_pool_t *p,
     int i;
     proxy_hashes hash;
 
-    ap_str_tolower(uri);
     c = strchr(uri, ':');
     if (c == NULL || c[1] != '/' || c[2] != '/' || c[3] == '\0') {
         return NULL;
@@ -1090,6 +1089,7 @@ PROXY_DECLARE(proxy_balancer *) ap_proxy_get_balancer(apr_pool_t *p,
     if ((c = strchr(c + 3, '/'))) {
         *c = '\0';
     }
+    ap_str_tolower(uri);
     hash.def = ap_proxy_hashfunc(uri, PROXY_HASHFUNC_DEFAULT);
     hash.fnv = ap_proxy_hashfunc(uri, PROXY_HASHFUNC_FNV);
     balancer = (proxy_balancer *)conf->balancers->elts;