-
-
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
Cannot set property 'files' #25
Comments
Strange. It's not on L125, but okey. Can you give the full stack and use case example? |
Occurs when:
|
@isdenya thanks for the info. I'm working on next release locally. |
This same bug happens if you post an empty body with fieldsKey = false. |
@sedenardi good point. |
@tunnckoCore I think the main issue is that L87 |
Agreed. 👍 I'm trying to come to this as soon as possible, or at least to push my local things to new branch and to be able others to continue. PRs are always welcome, i'm just too busy and i'm not using this package anywhere atm. |
@tunnckoCore Cool. I'll run my possible fix through a couple of different scenarios and make sure your tests don't break and submit a PR in the next few days. |
Yea, thanks. If you can easy fix it for current version it would be great. I'm open. |
don't break on empty bodies (empty posts)
TypeError: Cannot set property 'files' of undefined
at handleRequest .../node_modules/koa-better-body/index.js:125:23)
It can be changed to better
The text was updated successfully, but these errors were encountered: