lib/elasticsearch/transport/transport/http/faraday.rb in elasticsearch-transport-7.13.3 vs lib/elasticsearch/transport/transport/http/faraday.rb in elasticsearch-transport-7.14.0.pre

- old
+ new

@@ -17,11 +17,10 @@ module Elasticsearch module Transport module Transport module HTTP - # The default transport implementation, using the [_Faraday_](https://rubygems.org/gems/faraday) # library for abstracting the HTTP client. # # @see Transport::Base # @@ -43,13 +42,15 @@ end else headers end - response = connection.connection.run_request(method.downcase.to_sym, - url, - ( body ? __convert_to_json(body) : nil ), - headers) + response = connection.connection.run_request( + method.downcase.to_sym, + url, + (body ? __convert_to_json(body) : nil), + headers + ) Response.new response.status, decompress_response(response.body), response.headers end end