Skip to content

Conversation

fliespl
Copy link

@fliespl fliespl commented Mar 10, 2021

Content-Type header field is used to specify type of data in the body request.

When request is sent with an empty payload - it should be accepted the same way as DELETE request, cause in such cases Content-Type header is not applicable.

…content-type

Content-Type header field is used to specify type of data in the body request.

When request is sent with an empty payload - it should be accepted the same way as DELETE request, cause in such cases Content-Type header is not applicable.
@fliespl fliespl changed the title POST method should also not throw exception on empty payload without … POST method should not throw exception on empty payload without content-type Mar 10, 2021
@goetas
Copy link
Member

goetas commented Oct 13, 2021

hi,
thanks for your PR. this makes sense to me.

could you add a test for this please?

@goetas goetas self-requested a review October 13, 2021 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants