diff --git a/lib/request/connect.py b/lib/request/connect.py index 2bb69e338..4ddaa02cf 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -223,7 +223,7 @@ class Connect: if kb.proxyAuthHeader: headers[HTTPHEADER.PROXY_AUTHORIZATION] = kb.proxyAuthHeader - headers[HTTPHEADER.HOST] = urlparse.urlparse(url).netloc.split(':')[0] + headers[HTTPHEADER.HOST] = urlparse.urlparse(url).netloc if auxHeaders: for key, item in auxHeaders.items():