Skip to content

Commit 0020261

Browse files
committed
Fix compat with requests >= 2.32.3
See: psf/requests#6710
1 parent c881e6c commit 0020261

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

django_afip/clients.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ class AFIPAdapter(HTTPAdapter):
5858

5959
def init_poolmanager(self, *args, **kwargs) -> PoolManager:
6060
context = create_urllib3_context(ciphers=CIPHERS)
61+
context.load_default_certs()
6162
kwargs["ssl_context"] = context
6263
return super().init_poolmanager(*args, **kwargs)
6364

6465
def proxy_manager_for(self, *args, **kwargs) -> ProxyManager:
6566
context = create_urllib3_context(ciphers=CIPHERS)
67+
context.load_default_certs()
6668
kwargs["ssl_context"] = context
6769
return super().proxy_manager_for(*args, **kwargs)
6870

0 commit comments

Comments
 (0)