Fix issue: There is an error appear "ValueError: No JSON object could be decoded" when data is sent from SAP to ERPNext in http request body.

Signed-off-by: Yaroslav <jarsyxx@gmail.com>
This commit is contained in:
Yaroslav Hreshko 2016-08-09 13:38:11 +03:00
parent a115df59dc
commit 7f571798d9

View file

@ -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'):