Skip to content

Commit 2356e19

Browse files
committed
add another check if v2.
1 parent 4dfc1bc commit 2356e19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,10 @@ function determineIsEventVersionV1(event) {
368368
if (event.version === '1.0') {
369369
return true;
370370
}
371+
372+
if (event.version === '2.0') {
373+
return false;
374+
}
371375
// per aws event spec https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
372376
// events suppose to have version specified.
373377
// For some reason, the version is not specified in some cases.

0 commit comments

Comments
 (0)