Skip to content

Commit

Permalink
Use kwargs when constructing RedirectHandlers.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Jan 20, 2011
1 parent a272859 commit 498438b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/web.py
Expand Up @@ -1154,7 +1154,7 @@ def __call__(self, request):
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)
Expand Down

0 comments on commit 498438b

Please sign in to comment.