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