diff --git a/cuizin/web.py b/cuizin/web.py index b8eefbd..7ff8e95 100644 --- a/cuizin/web.py +++ b/cuizin/web.py @@ -59,7 +59,7 @@ def api_v1_recipes_post(): """ Create a new recipe from URL """ - data = json.load(bottle.request.body) + data = json.loads(bottle.request.body.read().decode('utf-8')) if 'url' not in data: return { 'error': 'No URL provided'