urlencoded-body-parser
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -7,3 +7,3 @@ const getRawBody = require('raw-body') | ||
const type = req.headers['content-type'] | ||
const encoding = typer.parse(type).parameters.charset | ||
const encoding = (type) ? typer.parse(type).parameters.charset : 'UTF-8' | ||
@@ -10,0 +10,0 @@ req.rawBody = req.rawBody || getRawBody(req, {limit, encoding}) |
{ | ||
"name": "urlencoded-body-parser", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Small application/x-www-form-urlencoded request body parser", | ||
@@ -13,2 +13,3 @@ "main": "dist.js", | ||
"scripts": { | ||
"prepublish": "npm run build", | ||
"build": "async-to-gen index.js > dist.js", | ||
@@ -15,0 +16,0 @@ "test": "standard; node --harmony-async-await ./node_modules/.bin/jest" |
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
2564