Skip to content

Commit

Permalink
Hotfix for requests 2.32.2
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Petito <[email protected]>
  • Loading branch information
krissetto committed May 22, 2024
1 parent b86573a commit 104c5c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/transport/basehttpadapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ def close(self):
super().close()
if hasattr(self, 'pools'):
self.pools.clear()

# Fix for requests 2.32.2+:
# https://github.com/psf/requests/commit/c98e4d133ef29c46a9b68cd783087218a8075e05
def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None):
return self.get_connection(request.url, proxies)

0 comments on commit 104c5c4

Please sign in to comment.