elasticsearch-sample-index icon indicating copy to clipboard operation
elasticsearch-sample-index copied to clipboard

Support ES6 required Content-Type header

Open mnm364 opened this issue 7 years ago • 0 comments

Modify cURL requests to include

Content-Type: application/json

Background: Starting from Elasticsearch 6.0, all REST requests that include a body must also provide the correct content-type for that body.

https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests

mnm364 avatar Mar 11 '19 18:03 mnm364