aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/app.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-07-25 12:49:22 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-07-25 12:49:22 +1200
commiteb43291b3c061c654dc93c26e924ca3cd0210b61 (patch)
treec8a72b3fbf1c9dd6c11362583909a6f86f9c29f2 /libpathod/app.py
parent24f69419df148eb333591b5e8b654cd2987c0843 (diff)
downloadmitmproxy-eb43291b3c061c654dc93c26e924ca3cd0210b61.tar.gz
mitmproxy-eb43291b3c061c654dc93c26e924ca3cd0210b61.tar.bz2
mitmproxy-eb43291b3c061c654dc93c26e924ca3cd0210b61.zip
Note that pauses are skipped during previews.
Diffstat (limited to 'libpathod/app.py')
-rw-r--r--libpathod/app.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/libpathod/app.py b/libpathod/app.py
index c1fb670f..ebcf0369 100644
--- a/libpathod/app.py
+++ b/libpathod/app.py
@@ -93,7 +93,8 @@ def _preview(is_request):
spec = spec,
section = "main",
syntaxerror = None,
- error = None
+ error = None,
+ pauses = None
)
if not spec.strip():
args["error"] = "Can't parse an empty spec."
@@ -113,7 +114,7 @@ def _preview(is_request):
return render(template, **args)
s = cStringIO.StringIO()
- r.preview_safe()
+ args["pauses"] = r.preview_safe()
if is_request:
r.serve(s, check=app.config["pathod"].check_size, host="example.com")