Skip to content

Content-Type header Notification #2

@marcelojscosta

Description

@marcelojscosta

At Elasticsearch 6.6.1 do you need to specify the header as JSON.

curl --header "content-type: application/JSON" -XPOST XXX.XXX.XXX.XXX:9200/actresses/_bulk --data-binary @actresses.json;

Without this change, the system shows the and error message:

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

I suggest that you inform this alteration to Elasticsearch 6.x at documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions