Open ganeshan opened 6 years ago
Hi Ganeshan,
Thank you for your feedback. Sure, do a pull request.
Here it works without the content type. However, I guess it depends on people's setup. So it's safer to add the header.
Thanks! :)
2018-02-10 13:23 GMT+01:00 Ganeshan Venkataraman notifications@github.com:
Hi, when I try this command curl -XPUT http://127.0.0.1:9200/geonames -d @data/schema.json, I get the following error: {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}. However, when I issue the following command, curl -H 'Content-Type: application/json' -XPUT http://127.0.0.1:9200/geonames -d @data/schema.json, it works, and I get the following response, {"acknowledged":true,"shards_acknowledged":true,"index":"geonames"}. If you agree, I can send a pull request to update the documentation.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gunske/geolistic/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AC6p_JG0rBG49PvgT8bNcZ57-pUKI2m0ks5tTYpWgaJpZM4SA6VW .
Hi, when I try this command
curl -XPUT http://127.0.0.1:9200/geonames -d @data/schema.json
, I get the following error:{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}
. However, when I issue the following command,curl -H 'Content-Type: application/json' -XPUT http://127.0.0.1:9200/geonames -d @data/schema.json
, it works, and I get the following response,{"acknowledged":true,"shards_acknowledged":true,"index":"geonames"}
. If you agree, I can send a pull request to update the documentation.