Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit 83d939e

Browse files
authored
Merge pull request #62 from triggermesh/nodejs-ce-ctx
CE context headers in Nodejs 10 runtime
2 parents 358d399 + 4ab15f4 commit 83d939e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

node10/bootstrap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ async function nextInvocation() {
103103
context.clientContext = JSON.parse(res.headers['lambda-runtime-client-context'])
104104
}
105105

106+
if (res.headers['lambda-runtime-cloudevents-context']) {
107+
context.ce = JSON.parse(res.headers['lambda-runtime-cloudevents-context'])
108+
}
109+
106110
if (res.headers['lambda-runtime-cognito-identity']) {
107111
context.identity = JSON.parse(res.headers['lambda-runtime-cognito-identity'])
108112
}

0 commit comments

Comments
 (0)