diff options
Diffstat (limited to 'libproxy/url.cpp')
-rw-r--r-- | libproxy/url.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libproxy/url.cpp b/libproxy/url.cpp index cd781df..d00adfd 100644 --- a/libproxy/url.cpp +++ b/libproxy/url.cpp @@ -212,6 +212,8 @@ url::url(const string &url) throw(parse_error) host_end = string::npos; } else { host_end = hier_part.find(':', host_start); + if (path_start < host_end) + host_end = path_start; } /* If not port, host ends where path starts */ |