diff options
author | Moshe Zadka <moshez@math.huji.ac.il> | 2001-04-11 07:44:53 (GMT) |
---|---|---|
committer | Moshe Zadka <moshez@math.huji.ac.il> | 2001-04-11 07:44:53 (GMT) |
commit | 7667680d703d32c796be342539b9265f9e280e98 (patch) | |
tree | 97c3d318621883aa3ad4bcc2674a1a4dbb78a48e /Lib/urllib2.py | |
parent | 2bd0d88360ebc1c2ca8346891a3b4ab62a8270d4 (diff) | |
download | cpython-7667680d703d32c796be342539b9265f9e280e98.zip cpython-7667680d703d32c796be342539b9265f9e280e98.tar.gz cpython-7667680d703d32c796be342539b9265f9e280e98.tar.bz2 |
Idiotic braino caused HTTP openers to ignore proxies.
This fixes 413135
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r-- | Lib/urllib2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 80829b9..5ca5452 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') |