Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST method should not throw exception on empty payload without content-type #2297

Open
wants to merge 2 commits into
base: 3.x
Choose a base branch
from

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?

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.

None yet

2 participants