@h4ad/serverless-adapter
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -72,2 +72,3 @@ "use strict"; | ||
const headers = (0, core_1.getFlattenedHeadersMap)(responseHeaders); | ||
const multiValueHeaders = (0, core_1.getMultiValueHeadersMap)(responseHeaders); | ||
const transferEncodingHeader = headers['transfer-encoding']; | ||
@@ -81,7 +82,5 @@ const hasTransferEncodingChunked = transferEncodingHeader && transferEncodingHeader.includes('chunked'); | ||
} | ||
const cookies = headers['set-cookie']; | ||
if (cookies) { | ||
headers.cookies = cookies; | ||
const cookies = multiValueHeaders['set-cookie']; | ||
if (headers) | ||
delete headers['set-cookie']; | ||
} | ||
return { | ||
@@ -92,2 +91,3 @@ statusCode, | ||
isBase64Encoded, | ||
cookies, | ||
}; | ||
@@ -94,0 +94,0 @@ } |
{ | ||
"name": "@h4ad/serverless-adapter", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "This library enables you to utilize any Cloud or Event Source to respond to web and API requests using your existing Node.js application framework.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/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
164467