mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 08:59:44 +08:00
fix: display indented json for request json body
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
**Fixed**
|
||||
|
||||
- fix: catch UnicodeDecodeError when json loads request body
|
||||
- fix: display indented json for request json body
|
||||
|
||||
**Changed**
|
||||
|
||||
|
||||
@@ -162,6 +162,7 @@ def __stringify_request(request_data):
|
||||
try:
|
||||
# request body is in json format
|
||||
value = json.loads(value)
|
||||
value = dumps_json(value)
|
||||
except JSONDecodeError:
|
||||
pass
|
||||
value = escape(value)
|
||||
|
||||
Reference in New Issue
Block a user