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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7667680d703d32c796be342539b9265f9e280e98;p=python Idiotic braino caused HTTP openers to ignore proxies. This fixes 413135 --- diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 80829b9946..5ca5452a4f 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')