We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
index.js 38line
const headers = request.headers || {}
http header is different to aws lambda event header
aws lambda event header:
"age": [ { "key": "Age", "value": "2402" } ] }
so need add function to rebuild http header,
function rebuildHeader(headers) { var newHeaders = {} for (var key in headers) { var keyValue = headers[key] var value = keyValue[0].value newHeaders[key] = value } return newHeaders }
const headers = rebuildHeader(request.headers)
If you think it’s ok, please modify it
The text was updated successfully, but these errors were encountered:
No branches or pull requests
index.js 38line
const headers = request.headers || {}
http header is different to aws lambda event header
aws lambda event header:
so need add function to rebuild http header,
index.js 38line
If you think it’s ok, please modify it
The text was updated successfully, but these errors were encountered: