aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/app.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2014-11-15 12:41:44 +1300
committerAldo Cortesi <aldo@nullcube.com>2014-11-15 12:41:44 +1300
commit1b41b9bb9b12a4ac3ce56f6c3abe3bbbf4e7bfa4 (patch)
tree700c52eca332f08d74792e12f3e5a2e4740cdd44 /libpathod/app.py
parent27c7e9e9345bbc458e7efc4093c2074e19011d12 (diff)
downloadmitmproxy-1b41b9bb9b12a4ac3ce56f6c3abe3bbbf4e7bfa4.tar.gz
mitmproxy-1b41b9bb9b12a4ac3ce56f6c3abe3bbbf4e7bfa4.tar.bz2
mitmproxy-1b41b9bb9b12a4ac3ce56f6c3abe3bbbf4e7bfa4.zip
Use current version for download links
Fixes #19
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')