Skip to content

Commit fe4f91b

Browse files
committed
Merge branch 'mr/forestier/fix-flask-wrapper' into 'master'
Fix the WSGI environment creation Closes #7 See merge request it/e3-aws!58
2 parents d5df96c + 2d76f11 commit fe4f91b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/e3/aws/troposphere/awslambda/flask_apigateway_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def create_flask_wsgi_environ(self, event: dict, context: dict) -> dict:
143143

144144
# Body
145145
body = event.get("body", "")
146-
if event.get("isBase64Encoded", "false") == "true":
146+
if event.get("isBase64Encoded"):
147147
body = base64.b64decode(body)
148148
elif body:
149149
body = body.encode("utf-8")

0 commit comments

Comments
 (0)