We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e2cc4e commit 0f07281Copy full SHA for 0f07281
src/sasctl/core.py
@@ -166,8 +166,8 @@ def __str__(self):
166
class SSLContextAdapter(HTTPAdapter):
167
"""HTTPAdapter that uses the default SSL context on the machine."""
168
169
- def __init__(self, *args, assert_hostname=True, **kwargs):
170
- self.assert_hostname = assert_hostname
+ def __init__(self, *args, **kwargs):
+ self.assert_hostname = kwargs.pop('assert_hostname', True)
171
requests.adapters.HTTPAdapter.__init__(self, *args, **kwargs)
172
173
def init_poolmanager(self, *args, **kwargs):
0 commit comments