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

Fixed an exception raised with empty json requests. #440

Merged
merged 1 commit into from
Dec 20, 2013

Conversation

ryan-scott-dev
Copy link
Contributor

Empty body requests with ‘Content-Type=application/json’ raise the exception “JSON string is empty.” when it tries to parse the result.

This is a huge issue with GET requests that use the content type to return either a html or json response.

@s-ludwig
Copy link
Member

Isn't the "Accept" header meant for that? It seems to be abuse of "Content-Type" to me, is this common practice? Anyway, that special case shouldn't cause any harm, so it's good to go.

s-ludwig added a commit that referenced this pull request Dec 20, 2013
Fixed an exception raised with empty json requests.
@s-ludwig s-ludwig merged commit b6a18b5 into vibe-d:master Dec 20, 2013
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.

2 participants