From: Moshe Zadka Date: Wed, 11 Apr 2001 07:44:53 +0000 (+0000) Subject: Idiotic braino caused HTTP openers to ignore proxies. X-Git-Tag: v2.1c1~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7667680d703d32c796be342539b9265f9e280e98;p=thirdparty%2FPython%2Fcpython.git Idiotic braino caused HTTP openers to ignore proxies. This fixes 413135 --- diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 80829b9946c3..5ca5452a4ff7 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -781,7 +781,7 @@ def encode_digest(digest): class AbstractHTTPHandler(BaseHandler): def do_open(self, http_class, req): - host = urlparse.urlparse(req.get_full_url())[1] + host = req.get_host() if not host: raise URLError('no host given')