mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
Only assume localhost in the special case where the person
just has the lone scheme after the | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1533113 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1636,12 +1636,13 @@ PROXY_DECLARE(char *) ap_proxy_define_worker(apr_pool_t *p,
|
||||
return apr_pstrcat(p, "URL must be absolute!: ", url, NULL);
|
||||
}
|
||||
/* allow for unix:/path|http: */
|
||||
if (!uri.hostname && !sockpath) {
|
||||
return apr_pstrcat(p, "URL must be absolute!: ", url, NULL);;
|
||||
}
|
||||
|
||||
if (sockpath) {
|
||||
uri.hostname = "localhost";
|
||||
if (!uri.hostname) {
|
||||
if (sockpath) {
|
||||
uri.hostname = "localhost";
|
||||
}
|
||||
else {
|
||||
return apr_pstrcat(p, "URL must be absolute!: ", url, NULL);
|
||||
}
|
||||
}
|
||||
else {
|
||||
ap_str_tolower(uri.hostname);
|
||||
|
Reference in New Issue
Block a user