瀏覽代碼

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 年之前
committed by GitHub
父節點
當前提交
d763435500
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      frappe/app.py

+ 2
- 0
frappe/app.py 查看文件

@@ -55,6 +55,8 @@ def application(request):
response = frappe.handler.handle() response = frappe.handler.handle()


elif frappe.request.path.startswith("/api/"): 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() response = frappe.api.handle()


elif frappe.request.path.startswith('/backups'): elif frappe.request.path.startswith('/backups'):


Loading…
取消
儲存