Skip to content

Respect custom content-type header in the reactive client. #2088

@sothawo

Description

@sothawo
Collaborator

In order to be able to use the current reactive client against a version 8 cluster, it is necessary to set the following headers:

"Accept: application/vnd.elasticsearch+json;compatible-with=7"
"Content-Type: application/vnd.elasticsearch+json;compatible-with=7"

When doing this by configuring the client, the current code in addition adds the

"Content-Type: application/json"

header which leads to an error returned from Elasticsearch.

A content-type header determined by the content should only be added when no header was set by the user.

Activity

self-assigned this
on Feb 17, 2022
added 3 commits that reference this issue on Feb 18, 2022
cf380e2
ab29ae4
8285dd0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @sothawo

    Issue actions

      Respect custom content-type header in the reactive client. · Issue #2088 · spring-projects/spring-data-elasticsearch