From: Ben Darnell Date: Tue, 21 Sep 2010 19:15:02 +0000 (-0700) Subject: Fix default_host redirect. X-Git-Tag: v1.2.0~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1d94db451e57301e2f97d7c33eae6a84592d078;p=thirdparty%2Ftornado.git Fix default_host redirect. Closes #141. --- diff --git a/tornado/web.py b/tornado/web.py index 092306b07..b79399add 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -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)