pelias / terraform-elasticsearch

Terraform scripts for running an Elasticsearch cluster
10 stars 6 forks source link

set json request header to avoid errors… #7

Closed missinglink closed 5 years ago

missinglink commented 5 years ago

This PR explicitly sets the Content-Type header for all JSON requests to Elasticsearch. These headers are required in ES6+ where strict content-type checking is enforced.

related to https://github.com/geocodeearth/terraform/pull/76 & https://github.com/orangejulius/elasticsearch-bash-utils/pull/1

missinglink commented 5 years ago

Tested and working, merging.