]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix default_host redirect.
authorBen Darnell <ben@bendarnell.com>
Tue, 21 Sep 2010 19:15:02 +0000 (12:15 -0700)
committerBen Darnell <ben@bendarnell.com>
Tue, 21 Sep 2010 19:15:02 +0000 (12:15 -0700)
Closes #141.

tornado/web.py

index 092306b074aeb030c3da92e7ef0263a26ce4c3e6..b79399add96b5e2fbeeea59ca60fd823e829500c 100644 (file)
@@ -1126,7 +1126,7 @@ class Application(object):
         handlers = self._get_host_handlers(request)
         if not handlers:
             handler = RedirectHandler(
-                request, "http://" + self.default_host + "/")
+                self, request, "http://" + self.default_host + "/")
         else:
             for spec in handlers:
                 match = spec.regex.match(request.path)