Skip to content

Commit

Permalink
Pass request_context to _new_pool
Browse files Browse the repository at this point in the history
I got an error while trying to use the adapter with recent python and urllib3. A solution seems to be what's suggested in psf/requests#4010 (comment)
  • Loading branch information
filippog authored Nov 10, 2017
1 parent 4f8d8dd commit fac00ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def __init__(self, *args, **kwargs):
self.dest_ip = kwargs.pop('dest_ip', None)
super(ForcedIPHTTPSPoolManager, self).__init__(*args, **kwargs)

def _new_pool(self, scheme, host, port):
def _new_pool(self, scheme, host, port, request_context=None):
kwargs = self.connection_pool_kw
assert scheme == 'https'
kwargs['dest_ip'] = self.dest_ip
Expand Down

0 comments on commit fac00ed

Please sign in to comment.