summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoshe Zadka <moshez@math.huji.ac.il>2001-04-11 07:44:53 (GMT)
committerMoshe Zadka <moshez@math.huji.ac.il>2001-04-11 07:44:53 (GMT)
commit7667680d703d32c796be342539b9265f9e280e98 (patch)
tree97c3d318621883aa3ad4bcc2674a1a4dbb78a48e
parent2bd0d88360ebc1c2ca8346891a3b4ab62a8270d4 (diff)
downloadcpython-7667680d703d32c796be342539b9265f9e280e98.zip
cpython-7667680d703d32c796be342539b9265f9e280e98.tar.gz
cpython-7667680d703d32c796be342539b9265f9e280e98.tar.bz2
Idiotic braino caused HTTP openers to ignore proxies.
This fixes 413135
-rw-r--r--Lib/urllib2.py2
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')