feat: add keyword 'body' to reference response body

change: unify response field(content/json/text) to 'body' in html report
This commit is contained in:
debugtalk
2019-12-17 22:35:22 +08:00
parent d36d2bea22
commit 48066205a9
5 changed files with 15 additions and 10 deletions

View File

@@ -175,7 +175,7 @@ class ResponseObject(object):
raise exceptions.ExtractFailure(err_msg)
# response body
elif top_query in ["content", "text", "json"]:
elif top_query in ["body", "content", "text", "json"]:
try:
body = self.json
except exceptions.JSONDecodeError: