Skip to content

Content-Type header Error #72

@Nikuusi

Description

@Nikuusi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions