fixed proxy
authorben <ben@yyer.org>
Tue, 15 Nov 2011 02:59:39 +0000 (10:59 +0800)
committerben <ben@yyer.org>
Tue, 15 Nov 2011 02:59:39 +0000 (10:59 +0800)
requests/models.py

index bff73cb..da9abd3 100644 (file)
@@ -377,7 +377,7 @@ class Request(object):
         proxy = self.proxies.get(_p.scheme)
 
         if proxy:
-            conn = poolmanager.proxy_from_url(url)
+            conn = poolmanager.proxy_from_url(proxy)
         else:
             # Check to see if keep_alive is allowed.
             if self.config.get('keep_alive'):