diff --git a/httprunner/templates/default_report_template.html b/httprunner/templates/default_report_template.html index 31ae6429..293de353 100644 --- a/httprunner/templates/default_report_template.html +++ b/httprunner/templates/default_report_template.html @@ -189,8 +189,6 @@

Request and Response data

× - -

Request:

@@ -213,12 +211,15 @@ {% endfor %} + {% if record.meta_data.method in ["POST", "PUT"] %} body -
{{ record.meta_data.request_body | safe }}
+
{{ record.meta_data.request_body | safe }}
+ {% endif %} +