koa-body-parser
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -22,6 +22,4 @@ | ||
var encoding = 'transfer-encoding' in this.req.headers; | ||
var length = 'content-length' in this.req.headers && | ||
this.req.headers['content-length'] !== 0; | ||
if ((encoding || length) && !this.req._readableState.ended) { | ||
if ((encoding || this.request.length) && !this.req._readableState.ended) { | ||
try { | ||
@@ -28,0 +26,0 @@ this.request.body = yield parse(this.request, opts); |
{ | ||
"name": "koa-body-parser", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Parse request body into ctx.request.body", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"co-body": "0.0.1" | ||
"co-body": "~1.0.0" | ||
}, | ||
@@ -19,0 +19,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6575
10
131
+ Addedco-body@1.0.0(transitive)
+ Addedqs@1.0.2(transitive)
- Removedco-body@0.0.1(transitive)
- Removedqs@0.6.6(transitive)
Updatedco-body@~1.0.0