Bläddra i källkod

Merge pull request #1953 from jarsy/rest-error-fix

Fix issue: There is an error appear "ValueError: No JSON object could…
version-14
Rushabh Mehta 9 år sedan
committed by GitHub
förälder
incheckning
d763435500
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. +2
    -0
      frappe/app.py

+ 2
- 0
frappe/app.py Visa fil

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


Laddar…
Avbryt
Spara