Fix default_host redirect.

Closes #141.
This commit is contained in:
Ben Darnell 2010-09-21 12:15:02 -07:00
parent 9f529b8986
commit a1d94db451
1 changed files with 1 additions and 1 deletions

View 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)