diff --git a/frappe/app.py b/frappe/app.py index 3218906938..ffc52bd0e7 100644 --- a/frappe/app.py +++ b/frappe/app.py @@ -55,6 +55,8 @@ def application(request): response = frappe.handler.handle() elif frappe.request.path.startswith("/api/"): + if frappe.local.form_dict.data is None: + frappe.local.form_dict.data = request.get_data() response = frappe.api.handle() elif frappe.request.path.startswith('/backups'):