Skip to content

Conversation

domwebber
Copy link
Contributor

This PR handles the HTTP-500 error that occurs as a result of sending a POST request with the Content-Type: application/json but a non-JSON body.

Resolves #73

@mendhak
Copy link
Owner

mendhak commented Oct 19, 2024

Thanks please can you add a bit in tests.sh to test this as well?

@domwebber
Copy link
Contributor Author

Just added a test for this in 33314c1 - thanks!

@mendhak mendhak merged commit 8fb4ccd into mendhak:master Oct 19, 2024
2 checks passed
@mendhak
Copy link
Owner

mendhak commented Oct 21, 2024

Oops forgot to say, :35 is now pushed I think

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.

HTTP-500 Error on Invalid JSON with Content-Type: application/json
2 participants