mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 18:31:22 +00:00
9bd269c26a
- pathod request logs now include a clientcert member with details on the client cert, or None if there wasn't one. - pathoc has a -C option to specify a client certificate
33 lines
971 B
HTML
33 lines
971 B
HTML
{% extends "frame.html" %}
|
|
{% block body %}
|
|
<form style="float: right" method="POST" action="/log/clear">
|
|
<button type="submit" class="btn">clear</button>
|
|
</form>
|
|
<h1> Logs </h1>
|
|
<hr>
|
|
|
|
<table class="table table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>id</th>
|
|
<th>method</th>
|
|
<th>path</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for i in log %}
|
|
<tr>
|
|
{% if i["type"] == 'error' %}
|
|
<td colspan="3">ERROR: {{ i["msg"] }}</td>
|
|
{% else %}
|
|
<td>{{ i["id"] }}</td>
|
|
<td>{{ i["request"]["method"] }}</td>
|
|
<td><a href="/log/{{ i["id"] }}">{{ i["request"]["path"] }}</a></td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|
|
|