From 2220afbdf5527030b30ab9f0e9c80ad337947dce Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 21 Jun 2011 20:50:16 +0000 Subject: [PATCH] fix by request --- lib/request/connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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():