churchyard / rpms / python2

Forked from rpms/python2 6 years ago
Clone
a9f6e89
diff -up Python-2.7.5/Lib/urllib2.py.orig Python-2.7.5/Lib/urllib2.py
a9f6e89
--- Python-2.7.5/Lib/urllib2.py.orig	2013-07-17 12:22:58.595525622 +0200
a9f6e89
+++ Python-2.7.5/Lib/urllib2.py	2013-07-17 12:19:59.875898030 +0200
a9f6e89
@@ -728,6 +728,8 @@ class ProxyHandler(BaseHandler):
a9f6e89
         if proxy_type is None:
a9f6e89
             proxy_type = orig_type
a9f6e89
 
a9f6e89
+        req.get_host()
a9f6e89
+
a9f6e89
         if req.host and proxy_bypass(req.host):
a9f6e89
             return None
a9f6e89