mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Fix for v3 in deleting empty proxies.
This commit is contained in:
+1
-1
@@ -111,7 +111,7 @@ class Request(object):
|
||||
# Dictionary mapping protocol to the URL of the proxy (e.g. {'http': 'foo.bar:3128'})
|
||||
self.proxies = dict(proxies or [])
|
||||
|
||||
for proxy_type,uri_ref in self.proxies.items():
|
||||
for proxy_type,uri_ref in list(self.proxies.items()):
|
||||
if not uri_ref:
|
||||
del self.proxies[proxy_type]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user