Fix monkeypatch for HTTP::Client

This commit is contained in:
Omar Roth
2019-10-26 11:43:28 -04:00
parent a1225b6d0d
commit bdeb325bad
3 changed files with 8 additions and 4 deletions

View File

@@ -1610,7 +1610,11 @@ struct HTTPPool
end
response = yield conn
conn.unset_proxy
if region
conn.unset_proxy
end
response
rescue ex
conn = HTTPClient.new(url)