aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'libpathod/app.py')
-rw-r--r--libpathod/app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpathod/app.py b/libpathod/app.py
index e073921c..1fcfa078 100644
--- a/libpathod/app.py
+++ b/libpathod/app.py
@@ -131,9 +131,9 @@ def _preview(is_request):
args["error"] = c
return render(template, False, **args)
if is_request:
- safe.serve(s, app.config["pathod"].request_settings, host="example.com")
+ language.serve(safe, s, app.config["pathod"].request_settings, "example.com")
else:
- safe.serve(s, app.config["pathod"].request_settings)
+ language.serve(safe, s, app.config["pathod"].request_settings, None)
args["output"] = utils.escape_unprintables(s.getvalue())
return render(template, False, **args)