Skip to content

Commit

Permalink
Fixed up redirect's call to render.
Browse files Browse the repository at this point in the history
  • Loading branch information
toastdriven committed Nov 19, 2019
1 parent f57b104 commit 2f2a11e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion itty3.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,11 @@ def redirect(self, request, url, permanent=False):
status_code = 301

return self.render(
body="", headers={"Location": url}, status_code=status_code
request,
body="",
headers={"Location": url},
status_code=status_code,
content_type=PLAIN,
)

def error_404(self, request):
Expand Down

0 comments on commit 2f2a11e

Please sign in to comment.