churchyard / rpms / python2

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