Skip to content

Commit e33e0a4

Browse files
committed
Hotfix for requests 2.32.0.
Signed-off-by: Felix Fontein <[email protected]>
1 parent b86573a commit e33e0a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docker/transport/basehttpadapter.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@ def close(self):
66
super().close()
77
if hasattr(self, 'pools'):
88
self.pools.clear()
9+
10+
# Hotfix for requests 2.32.0: its commit
11+
# https://github.com/psf/requests/commit/c0813a2d910ea6b4f8438b91d315b8d181302356
12+
# changes requests.adapters.HTTPAdapter to no longer call get_connection() from
13+
# send(), but instead call _get_connection().
14+
def _get_connection(self, request, *args, proxies=None, **kwargs):
15+
return self.get_connection(request.url, proxies)

0 commit comments

Comments
 (0)