Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

AWS SAM expects an integer status code #23

Closed
wants to merge 1 commit into from
Closed
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 awsgi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __call__(self, status, headers, exc_info=None):
def response(self, output):
return {
'isBase64Encoded': False,
'statusCode': str(self.status),
'statusCode': int(self.status),
'headers': dict(self.headers),
'body': self.body.getvalue() + ''.join(map(convert_str, output)),
}
Expand Down