forked from pool/python-proton-client
Fix authentication errors OBS-URL: https://build.opensuse.org/request/show/1113509 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-client?expand=0&rev=7
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
diff --git a/proton/cert_pinning.py b/proton/cert_pinning.py
|
|
index e39298b..29aa048 100644
|
|
--- a/proton/cert_pinning.py
|
|
+++ b/proton/cert_pinning.py
|
|
@@ -18,7 +18,6 @@ class TLSPinningHTTPSConnectionPool(HTTPSConnectionPool):
|
|
host,
|
|
hash_dict,
|
|
port=None,
|
|
- strict=False,
|
|
timeout=Timeout.DEFAULT_TIMEOUT,
|
|
maxsize=1,
|
|
block=False,
|
|
@@ -44,7 +43,6 @@ class TLSPinningHTTPSConnectionPool(HTTPSConnectionPool):
|
|
super(TLSPinningHTTPSConnectionPool, self).__init__(
|
|
host,
|
|
port,
|
|
- strict,
|
|
timeout,
|
|
maxsize,
|
|
block,
|
|
@@ -67,7 +65,6 @@ class TLSPinningHTTPSConnectionPool(HTTPSConnectionPool):
|
|
super(TLSPinningHTTPSConnectionPool, self).__init__(
|
|
host,
|
|
port,
|
|
- strict,
|
|
timeout,
|
|
maxsize,
|
|
block,
|
|
@@ -181,5 +178,5 @@ class TLSPinningAdapter(HTTPAdapter):
|
|
):
|
|
self.poolmanager = TLSPinningPoolManager(
|
|
num_pools=connections, maxsize=maxsize, block=block,
|
|
- strict=True, hash_dict=self.hash_dict, **pool_kwargs
|
|
+ hash_dict=self.hash_dict, **pool_kwargs
|
|
)
|