Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
refactor(bodyParser): make use of bytes as method instead of bytes.parse
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Apr 8, 2016
1 parent 92cf2f8 commit 723449d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BodyParser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class BodyParser {
*/
_setUploadOptions () {
this.uploadOptions = {
maxFieldsSize: bytes.parse(this._get('uploads.maxSize', '4mb')),
maxFieldsSize: bytes(this._get('uploads.maxSize', '4mb')),
hash: this._get('uploads.hash', false),
multiple: this._get('uploads.multiple', true),
maxFields: this._get('qs.parameterLimit', 1000)
Expand All @@ -133,7 +133,7 @@ class BodyParser {
if (error) {
return reject(error)
}
resolve({fields, files})
resolve({fields, files, raw: null})
})
})
}
Expand Down

0 comments on commit 723449d

Please sign in to comment.