lib/httpx/adapters/faraday.rb in httpx-0.6.7 vs lib/httpx/adapters/faraday.rb in httpx-0.7.0

- old
+ new

@@ -151,11 +151,11 @@ env = @handlers.last.env proxy_options = { uri: env.request.proxy } session = @session.with(options_from_env(env)) - session = session.plugin(:proxy).with_proxy(proxy_options) if env.request.proxy + session = session.plugin(:proxy).with(proxy: proxy_options) if env.request.proxy responses = session.request(requests) Array(responses).each_with_index do |response, index| handler = @handlers[index] handler.on_response.call(response) @@ -190,10 +190,10 @@ end meth, uri, request_options = build_request(env) session = @session.with(options_from_env(env)) - session = session.plugin(:proxy).with_proxy(proxy_options) if env.request.proxy + session = session.plugin(:proxy).with(proxy: proxy_options) if env.request.proxy response = session.__send__(meth, uri, **request_options) response.raise_for_status unless response.is_a?(::HTTPX::Response) save_response(env, response.status, response.body.to_s, response.headers, response.reason) do |response_headers| response_headers.merge!(response.headers) end