# Elasticsearch 6.0.0-beta-1 -- forcing header feels like a regression

**URL:** <https://discuss.elastic.co/t/elasticsearch-6-0-0-beta-1-forcing-header-feels-like-a-regression/97672>\
**Category:** Elasticsearch\
**Created:** [August 20, 2017, 3:31am UTC](https://discuss.elastic.co/t/elasticsearch-6-0-0-beta-1-forcing-header-feels-like-a-regression/97672 "2017-08-20T03:31:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pushshift](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pushshift/32/50408_2.png) [@pushshift](https://discuss.elastic.co/u/pushshift)\
**Post date:** [August 20, 2017, 3:31am UTC](https://discuss.elastic.co/t/elasticsearch-6-0-0-beta-1-forcing-header-feels-like-a-regression/97672/1 "2017-08-20T03:31:05Z")

</div>

I've been playing with the new Elasticsearch version and do a lot of commands via curl on the command line. However, I must now add '-H "Content-Type: application/json"' to every curl command or else Elasticsearch will give an error.

This feels like a regression. Why enforce this? Either turn is off like 5.x or allow me to make a global setting configuration change in the configuration file because this gets really annoying fast.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [August 20, 2017, 2:44pm UTC](https://discuss.elastic.co/t/elasticsearch-6-0-0-beta-1-forcing-header-feels-like-a-regression/97672/2 "2017-08-20T14:44:27Z")

</div>

Please understand this is a security issue; you can read [Strict Content-Type Checking for Elasticsearch REST Requests](https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests) for the details.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 17, 2017, 2:44pm UTC](https://discuss.elastic.co/t/elasticsearch-6-0-0-beta-1-forcing-header-feels-like-a-regression/97672/3 "2017-09-17T14:44:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
