mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Prevent error when using proxies after picking an Adapter
This commit is contained in:
@@ -88,6 +88,9 @@ class HTTPAdapter(BaseAdapter):
|
||||
self.__attrs__)
|
||||
|
||||
def __setstate__(self, state):
|
||||
self.proxy_manager = {}
|
||||
self.config = {}
|
||||
|
||||
for attr, value in state.items():
|
||||
setattr(self, attr, value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user