From 7667680d703d32c796be342539b9265f9e280e98 Mon Sep 17 00:00:00 2001 From: Moshe Zadka Date: Wed, 11 Apr 2001 07:44:53 +0000 Subject: [PATCH] Idiotic braino caused HTTP openers to ignore proxies. This fixes 413135 --- Lib/urllib2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 80829b9946c..5ca5452a4ff 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')