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

req.body is undefined on patch requests #62

Closed
1 of 2 tasks
kran6a opened this issue Jul 15, 2020 · 2 comments
Closed
1 of 2 tasks

req.body is undefined on patch requests #62

kran6a opened this issue Jul 15, 2020 · 2 comments
Labels
bug Something isn't working released

Comments

@kran6a
Copy link

kran6a commented Jul 15, 2020

Bug Report

Is you/your team sponsoring this project

  • Yes
  • No

Minimal reproducible repo

https://github.com/kran6a/nanoexpress-bug-report

Current Behavior

req.body property is undefined on patch routes.

To test the route I used the following curl command: curl --request PATCH \ --url http://127.0.0.1:3030/ \ --header 'content-type: application/json' \ --data '{ "id": 1 }'

The route works as expected with other HTTP verbs

Expected behavior/code

req.body should work on patch routes the same way it works for all other methods

Environment

  • Node/npm version: Node 14.5.0/npm 6.14.5
  • OS: Debian
@kran6a kran6a added the bug Something isn't working label Jul 15, 2020
@dalisoft
Copy link
Member

Thanks for bug-report.

PR is welcome.

@github-actions
Copy link

🎉 This issue has been resolved in version 2.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

No branches or pull requests

2 participants