mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
only show request body row if request method is POST or PUT
This commit is contained in:
@@ -189,8 +189,6 @@
|
||||
<h2>Request and Response data</h2>
|
||||
<a class="close" href="#record_{{loop.index}}">×</a>
|
||||
|
||||
<!-- <div class="content"><pre>{{ record.meta_data | safe }}</pre></div> -->
|
||||
|
||||
<div class="content">
|
||||
<h3>Request:</h3>
|
||||
<div style="overflow: auto">
|
||||
@@ -213,12 +211,15 @@
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% if record.meta_data.method in ["POST", "PUT"] %}
|
||||
<tr>
|
||||
<th>body</th>
|
||||
<td>
|
||||
<pre>{{ record.meta_data.request_body | safe }}</pre>
|
||||
<pre>{{ record.meta_data.request_body | safe }}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user