lib/httpx/plugins/proxy.rb in httpx-1.1.2 vs lib/httpx/plugins/proxy.rb in httpx-1.1.3
- old
+ new
@@ -164,12 +164,10 @@
if response.is_a?(ErrorResponse) &&
__proxy_error?(response) && !@_proxy_uris.empty?
@_proxy_uris.shift
log { "failed connecting to proxy, trying next..." }
request.transition(:idle)
- connection = find_connection(request, connections, options)
- connections << connection unless connections.include?(connection)
- connection.send(request)
+ send_request(request, connections, options)
return
end
response
end