@codegenie/serverless-express
Advanced tools
Comparing version 4.14.1 to 4.14.2
{ | ||
"name": "@codegenie/serverless-express", | ||
"version": "4.14.1", | ||
"version": "4.14.2", | ||
"description": "This library enables you to utilize AWS Lambda and Amazon API Gateway to respond to web and API requests using your existing Node.js application framework.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -18,2 +18,12 @@ // ATTRIBUTION: https://github.com/dougmoscrop/serverless-http | ||
// IncomingMessage has a lot of logic for when to lowercase or alias well-known header names, | ||
// so we delegate to that logic here | ||
const headerEntries = Object.entries(headers) | ||
const rawHeaders = new Array(headerEntries.length * 2) | ||
for (let i = 0; i < headerEntries.length; i++) { | ||
rawHeaders[i * 2] = headerEntries[i][0] | ||
rawHeaders[i * 2 + 1] = headerEntries[i][1] | ||
} | ||
this._addHeaderLines(rawHeaders, rawHeaders.length) | ||
Object.assign(this, { | ||
@@ -26,3 +36,2 @@ ip: remoteAddress, | ||
method, | ||
headers, | ||
body, | ||
@@ -29,0 +38,0 @@ url |
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
71371
1377