From 3c74ad75591101d1d5e92cc3fe384378ae5a4bec Mon Sep 17 00:00:00 2001 From: scossu Date: Wed, 8 May 2024 07:47:11 -0400 Subject: [PATCH] Return json data in 400 debug. --- scriptshifter/rest_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scriptshifter/rest_api.py b/scriptshifter/rest_api.py index e544c59..80b96ef 100644 --- a/scriptshifter/rest_api.py +++ b/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: