minor update

This commit is contained in:
Miroslav Stampar 2011-06-21 20:59:34 +00:00
parent 2220afbdf5
commit b16b92fe46

View File

@ -225,6 +225,9 @@ class Connect:
headers[HTTPHEADER.HOST] = urlparse.urlparse(url).netloc
if headers[HTTPHEADER.HOST].endswith(':80'):
headers[HTTPHEADER.HOST] = headers[HTTPHEADER.HOST].split(':')[0]
if auxHeaders:
for key, item in auxHeaders.items():
headers[key] = item