fix: display indented json for request json body

This commit is contained in:
debugtalk
2019-12-18 16:27:25 +08:00
parent ab804cfc7b
commit 8ec9e4b4b7
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@
**Fixed** **Fixed**
- fix: catch UnicodeDecodeError when json loads request body - fix: catch UnicodeDecodeError when json loads request body
- fix: display indented json for request json body
**Changed** **Changed**
+1
View File
@@ -162,6 +162,7 @@ def __stringify_request(request_data):
try: try:
# request body is in json format # request body is in json format
value = json.loads(value) value = json.loads(value)
value = dumps_json(value)
except JSONDecodeError: except JSONDecodeError:
pass pass
value = escape(value) value = escape(value)