lib/elasticsearch/api/actions/bulk.rb in elasticsearch-api-7.16.0 vs lib/elasticsearch/api/actions/bulk.rb in elasticsearch-api-7.16.1
- old
+ new
@@ -63,10 +63,10 @@
payload = Elasticsearch::API::Utils.__bulkify(body)
else
payload = body
end
- headers.merge!("Content-Type" => "application/x-ndjson")
+ headers = Utils.ndjson_headers(headers)
perform_request(method, path, params, payload, headers).body
end
# Register this action with its valid params when the module is loaded.
#