Kaydet (Commit) 89485bf2 authored tarafından Ulysses Souza's avatar Ulysses Souza

Fix BaseHTTPAdapter for the SSL case

Signed-off-by: 's avatarUlysses Souza <ulysses.souza@docker.com>
üst 313f7364
...@@ -3,4 +3,6 @@ import requests.adapters ...@@ -3,4 +3,6 @@ import requests.adapters
class BaseHTTPAdapter(requests.adapters.HTTPAdapter): class BaseHTTPAdapter(requests.adapters.HTTPAdapter):
def close(self): def close(self):
self.pools.clear() super(BaseHTTPAdapter, self).close()
if hasattr(self, 'pools'):
self.pools.clear()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment