From ca920222811a7f260c3ba79b8f9144f0ee54ba0e Mon Sep 17 00:00:00 2001 From: imSp4rky Date: Mon, 31 Aug 2026 11:51:17 -0600 Subject: [PATCH] fix(utils): preserve _ssl_context when copying SSLCiphers adapter --- unshackle/core/utils/sslciphers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unshackle/core/utils/sslciphers.py b/unshackle/core/utils/sslciphers.py index d62c9073..d85aa320 100644 --- a/unshackle/core/utils/sslciphers.py +++ b/unshackle/core/utils/sslciphers.py @@ -44,6 +44,8 @@ class SSLCiphers(HTTPAdapter): 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): if cipher_list: if not isinstance(cipher_list, str):