Skip to content

Commit 2a059a9

Browse files
committed
Extend fix to requests 2.32.2+.
Signed-off-by: Felix Fontein <[email protected]>
1 parent e33e0a4 commit 2a059a9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docker/transport/basehttpadapter.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ def close(self):
77
if hasattr(self, 'pools'):
88
self.pools.clear()
99

10-
# Hotfix for requests 2.32.0: its commit
10+
# Hotfix for requests 2.32.0 and 2.32.1: its commit
1111
# https://github.com/psf/requests/commit/c0813a2d910ea6b4f8438b91d315b8d181302356
1212
# changes requests.adapters.HTTPAdapter to no longer call get_connection() from
1313
# send(), but instead call _get_connection().
1414
def _get_connection(self, request, *args, proxies=None, **kwargs):
1515
return self.get_connection(request.url, proxies)
16+
17+
# Fix for requests 2.32.2+:
18+
# https://github.com/psf/requests/commit/c98e4d133ef29c46a9b68cd783087218a8075e05
19+
def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None):
20+
return self.get_connection(request.url, proxies)

0 commit comments

Comments
 (0)