]> granicus.if.org Git - python/commitdiff
Idiotic braino caused HTTP openers to ignore proxies.
authorMoshe Zadka <moshez@math.huji.ac.il>
Wed, 11 Apr 2001 07:44:53 +0000 (07:44 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Wed, 11 Apr 2001 07:44:53 +0000 (07:44 +0000)
This fixes 413135

Lib/urllib2.py

index 80829b9946c3ac6e642db11c24673f4126d45470..5ca5452a4ff7328bd01744844446dc1403f29b15 100644 (file)
@@ -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')