Skip to content

Conversation

gperdomor
Copy link

Set contentType application/json only in post and patch requests because some frameworks, like Fastify throws error when receive a request with contentType application/json and an empty body (for example a GET or DELETE request without body)

Set contentType `application/json` only in post and patch requests because some frameworks, like Fastify throws error when receive a request with contentType `application/json` and an empty body (for example a GET or DELETE request without body)
@gperdomor
Copy link
Author

@moredip can you check this please?

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