working on aws lambda loading

This commit is contained in:
Gert Wohlgemuth 2018-05-20 21:18:36 -07:00
parent bf6ff26b09
commit b5d0c0ea6a

View File

@ -128,11 +128,7 @@ def code(event, context):
if response['Items'][0]["public"]: if response['Items'][0]["public"]:
content = urlsafe_b64decode(response['Items'][0]['content']) content = urlsafe_b64decode(response['Items'][0]['content'])
return { return str(content)
"headers:": {"Content-Type": "text/plain"},
"statusCode": 200,
"body": str(content)
}
else: else:
return { return {
"statusCode": 403, "statusCode": 403,