aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/templates/log.html
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-01-20 22:37:43 +1300
committerAldo Cortesi <aldo@nullcube.com>2013-01-20 22:37:43 +1300
commit9bd269c26a02d94f16d7c39f3cb0a4cd46bb40b1 (patch)
treee773b9c7a04038b810c0d5afc31cb1dc874eaeda /libpathod/templates/log.html
parent369b55b0944acf55d62a70df5777ce05adfe711c (diff)
downloadmitmproxy-9bd269c26a02d94f16d7c39f3cb0a4cd46bb40b1.tar.gz
mitmproxy-9bd269c26a02d94f16d7c39f3cb0a4cd46bb40b1.tar.bz2
mitmproxy-9bd269c26a02d94f16d7c39f3cb0a4cd46bb40b1.zip
Add support for client certificates
- 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
Diffstat (limited to 'libpathod/templates/log.html')
-rw-r--r--libpathod/templates/log.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/libpathod/templates/log.html b/libpathod/templates/log.html
index 22747e0e..19468d66 100644
--- a/libpathod/templates/log.html
+++ b/libpathod/templates/log.html
@@ -17,9 +17,13 @@
<tbody>
{% for i in log %}
<tr>
- <td>{{ i["id"] }}</td>
- <td>{{ i["request"]["method"] }}</td>
- <td><a href="/log/{{ i["id"] }}">{{ i["request"]["path"] }}</a></td>
+ {% 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>