mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
No need to lower the string before removing the path, it is just a waste of time.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1517025 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1081,7 +1081,6 @@ PROXY_DECLARE(proxy_balancer *) ap_proxy_get_balancer(apr_pool_t *p,
|
|||||||
int i;
|
int i;
|
||||||
proxy_hashes hash;
|
proxy_hashes hash;
|
||||||
|
|
||||||
ap_str_tolower(uri);
|
|
||||||
c = strchr(uri, ':');
|
c = strchr(uri, ':');
|
||||||
if (c == NULL || c[1] != '/' || c[2] != '/' || c[3] == '\0') {
|
if (c == NULL || c[1] != '/' || c[2] != '/' || c[3] == '\0') {
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -1090,6 +1089,7 @@ PROXY_DECLARE(proxy_balancer *) ap_proxy_get_balancer(apr_pool_t *p,
|
|||||||
if ((c = strchr(c + 3, '/'))) {
|
if ((c = strchr(c + 3, '/'))) {
|
||||||
*c = '\0';
|
*c = '\0';
|
||||||
}
|
}
|
||||||
|
ap_str_tolower(uri);
|
||||||
hash.def = ap_proxy_hashfunc(uri, PROXY_HASHFUNC_DEFAULT);
|
hash.def = ap_proxy_hashfunc(uri, PROXY_HASHFUNC_DEFAULT);
|
||||||
hash.fnv = ap_proxy_hashfunc(uri, PROXY_HASHFUNC_FNV);
|
hash.fnv = ap_proxy_hashfunc(uri, PROXY_HASHFUNC_FNV);
|
||||||
balancer = (proxy_balancer *)conf->balancers->elts;
|
balancer = (proxy_balancer *)conf->balancers->elts;
|
||||||
|
Reference in New Issue
Block a user