From 00202618cc27033985b3002095e48a47b39789c3 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Wed, 29 May 2024 18:24:06 +0200 Subject: [PATCH] Fix compat with requests >= 2.32.3 See: https://github.com/psf/requests/pull/6710 --- django_afip/clients.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django_afip/clients.py b/django_afip/clients.py index 4bd1636d..129eb009 100644 --- a/django_afip/clients.py +++ b/django_afip/clients.py @@ -58,11 +58,13 @@ class AFIPAdapter(HTTPAdapter): def init_poolmanager(self, *args, **kwargs) -> PoolManager: context = create_urllib3_context(ciphers=CIPHERS) + context.load_default_certs() kwargs["ssl_context"] = context return super().init_poolmanager(*args, **kwargs) def proxy_manager_for(self, *args, **kwargs) -> ProxyManager: context = create_urllib3_context(ciphers=CIPHERS) + context.load_default_certs() kwargs["ssl_context"] = context return super().proxy_manager_for(*args, **kwargs)