Skip to content

Commit 4a58976

Browse files
authored
Lambda_proxy mapping template
Make requestTimeEpoch value a number in the default lambda_proxy mapping template. "requestTimeEpoch" is handled as a number in the AWS SDK for typed languages and causes parsing issues when using a typed language such as c#.
1 parent a07672d commit 4a58976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/deploy/events/apiGateway/methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const LAMBDA_PROXY_REQUEST_TEMPLATE = `
6060
"protocol": "$context.protocol",
6161
"stage": "$context.stage",
6262
"domainPrefix": "$context.domainPrefix",
63-
"requestTimeEpoch": "$context.requestTimeEpoch",
63+
"requestTimeEpoch": $context.requestTimeEpoch,
6464
"requestId": "$context.requestId",
6565
#set( $map = $context.identity )
6666
"identity": $loop,

0 commit comments

Comments
 (0)