fix by request

This commit is contained in:
Miroslav Stampar 2011-06-21 20:50:16 +00:00
parent 9e232256f4
commit 2220afbdf5

View File

@ -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():