Skip to content

Commit

Permalink
Add missing headers to the HTTP lambda context
Browse files Browse the repository at this point in the history
  • Loading branch information
koresar committed Dec 29, 2023
1 parent dcf4d29 commit 5112cc9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/server/LambdaTransport.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ module.exports = require("./Transport").compose({
lambda.isHttp = Boolean(path);

if (lambda.isHttp) {
lambda.http = { path, query: event?.queryStringParameters, body: event?.body };
lambda.http = {
path,
query: event?.queryStringParameters,
body: event?.body,
headers: event?.headers,
};
} else {
lambda.invoke = { callContext: event?.callContext, callArg: event?.callArg };
}
Expand Down

0 comments on commit 5112cc9

Please sign in to comment.