Closed jmrichardson closed 6 years ago
Thanks for pointing this out - I'll take a look ASAP.
If it saves you any time, I forked and modified the utils.R to add headers such as:
response <- httr::POST(rescource$search_url, body = api_call_payload, httr::add_headers("Content-Type" = "application/json"))
Here's my forked version of utlis.R
Thanks Jim - would you be so kind as to send a pull request with your changes?
If there's an issue please let me know and I'll do it manually.
This has been fixed in v0.2.1 that has been submitted to CRAN.
With ES6, I receive the following error when sending a query with elasticsearchr:
Apparently ES6 has Strict Content-Type Checking for Elasticsearch REST Requests