Skip to content

Commit 89485bf

Browse files
author
Ulysses Souza
committed
Fix BaseHTTPAdapter for the SSL case
Signed-off-by: Ulysses Souza <[email protected]>
1 parent 313f736 commit 89485bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/transport/basehttpadapter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33

44
class BaseHTTPAdapter(requests.adapters.HTTPAdapter):
55
def close(self):
6-
self.pools.clear()
6+
super(BaseHTTPAdapter, self).close()
7+
if hasattr(self, 'pools'):
8+
self.pools.clear()

0 commit comments

Comments
 (0)