]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Use kwargs when constructing RedirectHandlers.
authorBen Darnell <ben@bendarnell.com>
Thu, 20 Jan 2011 19:52:53 +0000 (11:52 -0800)
committerBen Darnell <ben@bendarnell.com>
Thu, 20 Jan 2011 19:52:53 +0000 (11:52 -0800)
Closes #205.

tornado/web.py

index 89ebe886ab3578c622fdcd3181933811c6868f8f..e6f2d381a1ff0f69c435c44c6c47f7b4e084751b 100644 (file)
@@ -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)