mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
fix API Gateway / Lambda function URL response structure
This commit is contained in:
@@ -29,7 +29,7 @@ def cloudfrontResponse(status_code, body, body_b64=False, headers={}):
|
||||
|
||||
|
||||
def apiGatewayResponse(status_code, body, body_b64=False, headers={}):
|
||||
resp = {"status": status_code, "body": body, "headers": headers}
|
||||
resp = {"statusCode": status_code, "body": body, "headers": headers}
|
||||
if body_b64:
|
||||
resp["isBase64Encoded"] = True
|
||||
return resp
|
||||
|
||||
Reference in New Issue
Block a user