Skip to content

Fix: Send content-type header even when payload does not exist#20

Draft
shasts wants to merge 1 commit intoelastic:masterfrom
shasts:fix/content-type-no-body
Draft

Fix: Send content-type header even when payload does not exist#20
shasts wants to merge 1 commit intoelastic:masterfrom
shasts:fix/content-type-no-body

Conversation

@shasts
Copy link
Member

@shasts shasts commented Mar 31, 2022

Description of the PR

We have test failures where API validates for content-type header, but if the payload is empty, the swagger client does not seem to send it. https://github.com/elastic/cloud/issues/100076

This PR fixes the ApiInvoker to send the content-type for POST, PUT, and PATCH even when the payload is empty. Looks like the scala client is not the only one doing it. swagger-api#7787

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

Successfully merging this pull request may close these issues.

1 participant