diff --git a/frappe/app.py b/frappe/app.py index 4c6acc3538..0f716ac9e6 100644 --- a/frappe/app.py +++ b/frappe/app.py @@ -123,7 +123,7 @@ def init_request(request): def make_form_dict(request): import json - if request.content_type == 'application/json': + if request.content_type == 'application/json' and request.data: args = json.loads(request.data) else: args = request.form or request.args