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"]:
content = urlsafe_b64decode(response['Items'][0]['content'])
return {
"headers:": {"Content-Type": "text/plain"},
"statusCode": 200,
"body": str(content)
}
return str(content)
else:
return {
"statusCode": 403,