Skip to content

Commit

Permalink
Fix unicode url redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed May 11, 2017
1 parent cc31081 commit 487f5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ui/UiRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def render(self, template_path, *args, **kwargs):

# Redirect to an url
def actionRedirect(self, url):
self.start_response('301 Redirect', [('Location', url)])
self.start_response('301 Redirect', [('Location', str(url))])
yield "Location changed: %s" % url

def actionIndex(self):
Expand Down

0 comments on commit 487f5cb

Please sign in to comment.