Skip to content
This repository was archived by the owner on Apr 13, 2026. It is now read-only.

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

Draft
shasts wants to merge 1 commit into
elastic: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 into
elastic:masterfrom
shasts:fix/content-type-no-body

Conversation

@shasts

@shasts shasts commented Mar 31, 2022

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant