Comparing version 0.6.4 to 0.6.5
{ | ||
"name": "middy", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"description": "The simple (but cool 😎) middleware engine for AWS lambda in Node.js", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -15,3 +15,3 @@ const middy = require('../../middy') | ||
headers: { | ||
'Content-Type': 'application/x-www-form-urlencoded' | ||
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' | ||
}, | ||
@@ -40,3 +40,3 @@ body: 'frappucino=muffin&goat%5B%5D=scone&pond=moose' | ||
headers: { | ||
'Content-Type': 'application/x-www-form-urlencoded' | ||
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' | ||
}, | ||
@@ -43,0 +43,0 @@ body: 'a[b][c][d]=i' |
@@ -11,3 +11,3 @@ const defaults = { | ||
if (handler.event.headers && handler.event.headers['Content-Type'] === 'application/x-www-form-urlencoded') { | ||
if (handler.event.headers && handler.event.headers['Content-Type'].indexOf('application/x-www-form-urlencoded') === 0) { | ||
handler.event.body = parserFn(handler.event.body) | ||
@@ -14,0 +14,0 @@ } |
Sorry, the diff of this file is too big to display
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
348384