From 498438b12fe23bfb08e8b199466b5ef467542e8c Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Thu, 20 Jan 2011 11:52:53 -0800 Subject: [PATCH] Use kwargs when constructing RedirectHandlers. Closes #205. --- tornado/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/web.py b/tornado/web.py index 89ebe886a..e6f2d381a 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -1154,7 +1154,7 @@ class Application(object): handlers = self._get_host_handlers(request) if not handlers: handler = RedirectHandler( - self, request, "http://" + self.default_host + "/") + self, request, url="http://" + self.default_host + "/") else: for spec in handlers: match = spec.regex.match(request.path) -- 2.47.2