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

Ensure getParsedBody() return null if body is not parsed #1808

Merged
merged 1 commit into from Mar 10, 2016

Conversation

Projects
None yet
3 participants
@akrabat
Member

akrabat commented Mar 10, 2016

PSR-7 states that getParsedBody() must return null, an array or an object. If we can't parse the body as there's no media type parser available, then return null.

Fixes #1807

Ensure getParsedBody() return null if body is not parsed
PSR-7 states that getParsedBody() must return null, an array or an
object. If we can't parse the body as there's no media type parser
available, then return null.

Fixes #1807
@geggleto

This comment has been minimized.

Show comment
Hide comment
@geggleto

geggleto Mar 10, 2016

Contributor

👍 looks good.

Contributor

geggleto commented Mar 10, 2016

👍 looks good.

@mathmarques

This comment has been minimized.

Show comment
Hide comment
@mathmarques

mathmarques Mar 10, 2016

Contributor

👍

Contributor

mathmarques commented Mar 10, 2016

👍

akrabat added a commit to akrabat/Slim that referenced this pull request Mar 10, 2016

@akrabat akrabat merged commit 250bdbe into slimphp:3.x Mar 10, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment