lib/httpx/plugins/proxy.rb in httpx-0.23.4 vs lib/httpx/plugins/proxy.rb in httpx-0.24.0
- old
+ new
@@ -168,14 +168,10 @@
def build_connection(uri, options)
proxy = options.proxy
return super unless proxy
- connection = options.connection_class.new("tcp", uri, options)
- catch(:coalesced) do
- pool.init_connection(connection, options)
- connection
- end
+ init_connection("tcp", uri, options)
end
def fetch_response(request, connections, options)
response = super