working on aws lambda loading
This commit is contained in:
parent
bf6ff26b09
commit
b5d0c0ea6a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user