From 3e158211a830bbcba2dd463189a79ec3ad17c8d4 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 26 Jul 2012 20:01:51 +1200 Subject: Add a --nohang flag that turns off pauses in response generation. --- libpathod/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpathod/app.py') diff --git a/libpathod/app.py b/libpathod/app.py index ebcf0369..29b56711 100644 --- a/libpathod/app.py +++ b/libpathod/app.py @@ -117,9 +117,9 @@ def _preview(is_request): args["pauses"] = r.preview_safe() if is_request: - r.serve(s, check=app.config["pathod"].check_size, host="example.com") + r.serve(s, check=app.config["pathod"].check_policy, host="example.com") else: - r.serve(s, check=app.config["pathod"].check_size) + r.serve(s, check=app.config["pathod"].check_policy) args["output"] = utils.escape_unprintables(s.getvalue()) return render(template, **args) -- cgit v1.2.3