only show request body row if request method is POST or PUT

This commit is contained in:
debugtalk
2018-04-22 13:03:32 +08:00
parent cca68381e8
commit 36ce0b6dee

View File

@@ -189,8 +189,6 @@
<h2>Request and Response data</h2> <h2>Request and Response data</h2>
<a class="close" href="#record_{{loop.index}}">&times;</a> <a class="close" href="#record_{{loop.index}}">&times;</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>