lib/elasticsearch/transport/client.rb in elasticsearch-transport-7.16.0 vs lib/elasticsearch/transport/client.rb in elasticsearch-transport-7.16.1

- old
+ new

@@ -206,13 +206,14 @@ @arguments.delete(:password) end def set_compatibility_header return unless ['1', 'true'].include?(ENV['ELASTIC_CLIENT_APIVERSIONING']) + return if instance_variable_get('@options').dig(:transport_options, :headers, 'Accept') add_header( { - 'Accept' => 'application/vnd.elasticsearch+json;compatible-with=7', + 'Accept' => 'application/vnd.elasticsearch+json; compatible-with=7', 'Content-Type' => 'application/vnd.elasticsearch+json; compatible-with=7' } ) end