1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

Save a few cycles

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1517045 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christophe Jaillet
2013-08-23 21:19:21 +00:00
parent f41df079a2
commit 46d88308c2

View File

@@ -1871,7 +1871,7 @@ static int proxy_http_handler(request_rec *r, proxy_worker *worker,
return DECLINED;
if ((u - url) > 14)
return HTTP_BAD_REQUEST;
scheme = apr_pstrndup(p, url, u - url);
scheme = apr_pstrmemdup(p, url, u - url);
/* scheme is lowercase */
ap_str_tolower(scheme);
/* is it for us? */