diff --git a/requests_unixsocket/adapters.py b/requests_unixsocket/adapters.py index 83e1400..c3c73cc 100644 --- a/requests_unixsocket/adapters.py +++ b/requests_unixsocket/adapters.py @@ -63,6 +63,10 @@ def __init__(self, timeout=60, pool_connections=25, *args, **kwargs): pool_connections, dispose_func=lambda p: p.close() ) + # Fix for requests 2.32.2+: https://github.com/psf/requests/pull/6710 + def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None): + return self.get_connection(request.url, proxies) + def get_connection(self, url, proxies=None): proxies = proxies or {} proxy = proxies.get(urlparse(url.lower()).scheme)