[lambda] Make JSON load python 3-compatible
This commit is contained in:
parent
2d744c6626
commit
39a57195a2
@ -37,8 +37,7 @@ class LambdaResponse(BaseResponse):
|
|||||||
|
|
||||||
def _create_function(self, request, full_url, headers):
|
def _create_function(self, request, full_url, headers):
|
||||||
lambda_backend = self.get_lambda_backend(full_url)
|
lambda_backend = self.get_lambda_backend(full_url)
|
||||||
|
spec = json.loads(request.body.decode('utf-8'))
|
||||||
spec = json.loads(request.body)
|
|
||||||
try:
|
try:
|
||||||
fn = lambda_backend.create_function(spec)
|
fn = lambda_backend.create_function(spec)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user