From 36ce0b6dee816ee41f4f1a8f0c664bdc8a99b5b6 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Sun, 22 Apr 2018 13:03:32 +0800 Subject: [PATCH] only show request body row if request method is POST or PUT --- httprunner/templates/default_report_template.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 %} +