aws-lambda-fastify
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -96,3 +96,4 @@ module.exports = (app, options) => { | ||
const isSetCookie = h.toLowerCase() === 'set-cookie' | ||
if (Array.isArray(res.headers[h])) { | ||
const isArraycookie = Array.isArray(res.headers[h]) | ||
if (isArraycookie) { | ||
if (isSetCookie) { | ||
@@ -107,4 +108,4 @@ multiValueHeaders = multiValueHeaders || {} | ||
if (isSetCookie) { | ||
cookies = Array.isArray(res.headers[h]) ? res.headers[h] : [res.headers[h]] | ||
if (event.version === '2.0') delete res.headers[h] | ||
cookies = isArraycookie ? res.headers[h] : [res.headers[h]] | ||
if (event.version === '2.0' || isArraycookie) delete res.headers[h] | ||
} | ||
@@ -111,0 +112,0 @@ }) |
@@ -29,3 +29,3 @@ { | ||
"license": "MIT", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"main": "index.js", | ||
@@ -32,0 +32,0 @@ "scripts": { |
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
20756
215