Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for v3 in deleting empty proxies.

  • Loading branch information...
commit 65c19bc0e0c44da54ff46d2237264800e2f2238f 1 parent 2dc7db4
@SecurityForUs SecurityForUs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  requests/models.py
View
2  requests/models.py
@@ -111,7 +111,7 @@ def __init__(self,
# 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]
Please sign in to comment.
Something went wrong with that request. Please try again.