aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/app.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-03-14 11:21:32 +1100
committerAldo Cortesi <aldo@nullcube.com>2015-03-14 11:21:32 +1100
commit2e64d44aabc41ee93c0a682ce35b34a8716d3b8d (patch)
tree62ce244987b715d9e9261bea86bd0e8a6c69a77f /libpathod/app.py
parent7caf0e4dce604ef7d76a8cff1e49d0414306dfb3 (diff)
parent295c8340a39f48652f77d74f3f65bfcec19a5c34 (diff)
downloadmitmproxy-2e64d44aabc41ee93c0a682ce35b34a8716d3b8d.tar.gz
mitmproxy-2e64d44aabc41ee93c0a682ce35b34a8716d3b8d.tar.bz2
mitmproxy-2e64d44aabc41ee93c0a682ce35b34a8716d3b8d.zip
Merge branch 'master' of ssh.github.com:mitmproxy/pathod
Diffstat (limited to 'libpathod/app.py')
-rw-r--r--libpathod/app.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/libpathod/app.py b/libpathod/app.py
index 1910e80e..d23d26a0 100644
--- a/libpathod/app.py
+++ b/libpathod/app.py
@@ -1,4 +1,6 @@
-import logging, pprint, cStringIO
+import logging
+import pprint
+import cStringIO
from flask import Flask, jsonify, render_template, request, abort, make_response
import version, language, utils
from netlib import http_uastrings
@@ -39,7 +41,12 @@ def make_app(noapi):
@app.route('/')
@app.route('/index.html')
def index():
- return render("index.html", True, section="main")
+ return render(
+ "index.html",
+ True,
+ section="main",
+ version=version.VERSION
+ )
@app.route('/download')
@app.route('/download.html')