Comparing version 0.0.1 to 0.0.2
@@ -9,6 +9,6 @@ 'use strict'; | ||
if(this.is('application/json')){ | ||
this.request.req.body = yield co_body.json(this); | ||
this.request.body = yield co_body.json(this); | ||
} | ||
else if(this.is('application/x-www-form-urlencoded')){ | ||
this.request.req.body = yield co_body.form(this); | ||
this.request.body = yield co_body.form(this); | ||
} | ||
@@ -15,0 +15,0 @@ yield next; |
{ | ||
"name": "koa-body", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Simple wrapper around co-body for koa", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
1502
34