aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'libpathod/app.py')
-rw-r--r--libpathod/app.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpathod/app.py b/libpathod/app.py
index 6cde801a..6f12c0a2 100644
--- a/libpathod/app.py
+++ b/libpathod/app.py
@@ -129,16 +129,16 @@ def _preview(is_request):
s = cStringIO.StringIO()
args["pauses"] = r.preview_safe()
-
+
c = app.config["pathod"].check_policy(r)
if c:
args["error"] = c
return render(template, False, **args)
if is_request:
- r.serve(app.config["pathod"].request_settings, s, host="example.com")
+ r.serve(s, app.config["pathod"].request_settings, host="example.com")
else:
- r.serve(app.config["pathod"].request_settings, s)
+ r.serve(s, app.config["pathod"].request_settings)
args["output"] = utils.escape_unprintables(s.getvalue())
return render(template, False, **args)