[lambda] Make JSON load python 3-compatible

This commit is contained in:
Hugo Lopes Tavares 2016-02-16 17:38:39 -05:00
parent 2d744c6626
commit 39a57195a2

View File

@ -37,8 +37,7 @@ class LambdaResponse(BaseResponse):
def _create_function(self, request, full_url, headers):
lambda_backend = self.get_lambda_backend(full_url)
spec = json.loads(request.body)
spec = json.loads(request.body.decode('utf-8'))
try:
fn = lambda_backend.create_function(spec)
except ValueError as e: