From: Ben Darnell Date: Thu, 20 Jan 2011 19:52:53 +0000 (-0800) Subject: Use kwargs when constructing RedirectHandlers. X-Git-Tag: v1.2.0~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=498438b12fe23bfb08e8b199466b5ef467542e8c;p=thirdparty%2Ftornado.git Use kwargs when constructing RedirectHandlers. Closes #205. --- 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)