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

Make bodyParser.toJSON use .json based on the content type #26

Merged
merged 1 commit into from
Dec 21, 2021
Merged

Make bodyParser.toJSON use .json based on the content type #26

merged 1 commit into from
Dec 21, 2021

Conversation

excessivecoding
Copy link
Contributor

@excessivecoding excessivecoding commented Dec 20, 2021

Hello there,

I was working with some API endpoint in Remix and realized afterwards that the bodyParser didn't handle some payload properly.

This PR adds support for JSON body whenever the Content-Type header is specify to application/json.

Thanks for the amazing work 🙏

@sergiodxa sergiodxa changed the title add support for json body on bodyParser make bodyParser.toJSON use .json based on the content type Dec 21, 2021
@sergiodxa sergiodxa changed the title make bodyParser.toJSON use .json based on the content type Make bodyParser.toJSON use .json based on the content type Dec 21, 2021
@sergiodxa sergiodxa merged commit 8e9c2be into sergiodxa:main Dec 21, 2021
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