Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

Cast header Lambda-Runtime-Deadline-Ms to int for Python2.7/3.6 runtimes #224

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python2.7/run/runtime_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def receive_invoke():
raise

INVOKEID = resp.getheader('Lambda-Runtime-Aws-Request-Id')
DEADLINE_MS = resp.getheader('Lambda-Runtime-Deadline-Ms')
DEADLINE_MS = int(resp.getheader('Lambda-Runtime-Deadline-Ms'))
INVOKED_FUNCTION_ARN = resp.getheader(
'Lambda-Runtime-Invoked-Function-Arn')
XRAY_TRACE_ID = resp.getheader('Lambda-Runtime-Trace-Id')
Expand Down
2 changes: 1 addition & 1 deletion python3.6/run/runtime_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def receive_invoke():
raise

INVOKEID = resp.getheader('Lambda-Runtime-Aws-Request-Id')
DEADLINE_MS = resp.getheader('Lambda-Runtime-Deadline-Ms')
DEADLINE_MS = int(resp.getheader('Lambda-Runtime-Deadline-Ms'))
INVOKED_FUNCTION_ARN = resp.getheader(
'Lambda-Runtime-Invoked-Function-Arn')
XRAY_TRACE_ID = resp.getheader('Lambda-Runtime-Trace-Id')
Expand Down