-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
ctx.request.body returns undefined #91
Comments
I just figured out It stored in |
Oooooh damn, i forgot that. We had issues with that before. Before few versions it was body. i believe. But was changed if i remember correctly. However, it can be changed with options, so not so big problem :) Maybe some notes need, but i always think that this module si mostly the best documented of my all. Don't know. Try edit: edit2: It writes to |
Anyway, very thanks that we clarified all that mess :) |
after multipart/form-data parsing works fine, there are some issues with other routers that don't use multipart/form-data, but json request. It sends POST request from client using
axios
. and It worked fine withkoa-bodyparser
but doesn't work withkoa-better-body
.I've tested some codes and I figured that It parse the POST request but not body. I read that
koa-better-body
will parse no body when the header ismultipart/form-data
but the POST request is just a json request.request info
client code
router
app.js
The text was updated successfully, but these errors were encountered: