mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 07:52:13 +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>
|
<h2>Request and Response data</h2>
|
||||||
<a class="close" href="#record_{{loop.index}}">×</a>
|
<a class="close" href="#record_{{loop.index}}">×</a>
|
||||||
|
|
||||||
<!-- <div class="content"><pre>{{ record.meta_data | safe }}</pre></div> -->
|
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h3>Request:</h3>
|
<h3>Request:</h3>
|
||||||
<div style="overflow: auto">
|
<div style="overflow: auto">
|
||||||
@@ -213,12 +211,15 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% if record.meta_data.method in ["POST", "PUT"] %}
|
||||||
<tr>
|
<tr>
|
||||||
<th>body</th>
|
<th>body</th>
|
||||||
<td>
|
<td>
|
||||||
<pre>{{ record.meta_data.request_body | safe }}</pre>
|
<pre>{{ record.meta_data.request_body | safe }}</pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user