Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content-Type header Error #72

Open
Nikuusi opened this issue Jan 17, 2019 · 1 comment
Open

Content-Type header Error #72

Nikuusi opened this issue Jan 17, 2019 · 1 comment

Comments

@Nikuusi
Copy link

Nikuusi commented Jan 17, 2019

Hello, using the size or from parameters in search function, I had this error:

{ "error" : "Content-Type header [application/x-www-form-urlencoded] is not supported", "status" : 406 }

Except error on my part, to solve this problem one would have to add in the "call" function of the class ElasticSearch\Transport\HTTP curl_setopt($conn, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));

Thank you
cordially

@carsonlius
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants