浏览代码

Return json data in 400 debug.

scossu 1 年之前
父节点
当前提交
3c74ad7559
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scriptshifter/rest_api.py

+ 1 - 1
scriptshifter/rest_api.py

@@ -52,7 +52,7 @@ def handle_400(e):
     if logging.DEBUG >= logging.root.level:
         body = {
             "debug": {
-                "form_data": request.form,
+                "form_data": request.json or request.form,
             }
         }
     else: