lib/elasticsearch/transport/client.rb in elasticsearch-transport-5.0.1 vs lib/elasticsearch/transport/client.rb in elasticsearch-transport-5.0.2

- old
+ new

@@ -100,9 +100,12 @@ @arguments[:transport_options] ||= {} @arguments[:http] ||= {} @arguments[:transport_options].update(:request => { :timeout => @arguments[:request_timeout] } ) if @arguments[:request_timeout] + @arguments[:transport_options][:headers] ||= {} + @arguments[:transport_options][:headers].update 'Content-Type' => 'application/json' unless @arguments[:transport_options][:headers].keys.any? {|k| k.to_s.downcase =~ /content\-?\_?type/} + @send_get_body_as = @arguments[:send_get_body_as] || 'GET' transport_class = @arguments[:transport_class] || DEFAULT_TRANSPORT_CLASS @transport = @arguments[:transport] || begin