From b16b92fe468611090319cc3ac50e4a157cd4b1cf Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 21 Jun 2011 20:59:34 +0000 Subject: [PATCH] minor update --- lib/request/connect.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/request/connect.py b/lib/request/connect.py index 4ddaa02cf..d7b941a7d 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -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