commit | 7667680d703d32c796be342539b9265f9e280e98 | [log] [tgz] |
---|---|---|
author | Moshe Zadka <moshez@math.huji.ac.il> | Wed Apr 11 07:44:53 2001 +0000 |
committer | Moshe Zadka <moshez@math.huji.ac.il> | Wed Apr 11 07:44:53 2001 +0000 |
tree | 97c3d318621883aa3ad4bcc2674a1a4dbb78a48e | |
parent | 2bd0d88360ebc1c2ca8346891a3b4ab62a8270d4 [diff] [blame] |
Idiotic braino caused HTTP openers to ignore proxies. This fixes 413135
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 @@ 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')