mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-22 08:55:07 +00:00
fix(utils): preserve _ssl_context when copying SSLCiphers adapter
This commit is contained in:
@@ -44,6 +44,8 @@ class SSLCiphers(HTTPAdapter):
|
|||||||
than 15360 bits and ECC keys shorter than 512 bits are prohibited.
|
than 15360 bits and ECC keys shorter than 512 bits are prohibited.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__attrs__ = [*HTTPAdapter.__attrs__, "_ssl_context"]
|
||||||
|
|
||||||
def __init__(self, cipher_list: Optional[str] = None, security_level: int = 0, *args, **kwargs):
|
def __init__(self, cipher_list: Optional[str] = None, security_level: int = 0, *args, **kwargs):
|
||||||
if cipher_list:
|
if cipher_list:
|
||||||
if not isinstance(cipher_list, str):
|
if not isinstance(cipher_list, str):
|
||||||
|
|||||||
Reference in New Issue
Block a user