Browse Source

Return json data in 400 debug.

scossu 1 năm trước cách đây
mục cha
commit
3c74ad7559
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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: