Skip to content

Commit

Permalink
Fix compat with requests >= 2.32.3
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyNotHugo committed May 29, 2024
1 parent c881e6c commit 0020261
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django_afip/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0020261

Please sign in to comment.