forked from pool/python-proton-client
Accepting request 1113509 from home:avicenzi:protonvpn
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
This commit is contained in:
35
urllib3-v2-migration.patch
Normal file
35
urllib3-v2-migration.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
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
|
||||
)
|
Reference in New Issue
Block a user