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

A json request can have a body. #16

Merged

Conversation

pitpit
Copy link
Contributor

@pitpit pitpit commented Oct 17, 2018

And we could need to adapt status or body of the response depending on this request body (it does not work for now).

Furthermore, bodyParser.json already check the request is a json request. It allows request with content-type set to 'application/json' as well as variations like 'application/json;charset=utf8' so I remove the obsolete code.

…body of the response depending on this request body
@pitpit
Copy link
Contributor Author

pitpit commented Oct 17, 2018

hi @pracucci, could you review and merge this please ?

…s request with content-type set to 'application/json' as well as variations like 'application/json;charset=utf8'
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@pracucci pracucci merged commit 610d2d7 into spreaker:master Nov 14, 2018
@pracucci
Copy link
Collaborator

Released version 1.1.0. Thanks for your patience!

@pitpit pitpit deleted the feature/parse-body-of-all-json-requests branch November 14, 2018 16:07
@pitpit pitpit restored the feature/parse-body-of-all-json-requests branch November 14, 2018 16:28
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.

None yet

2 participants