From: Magnus Hagander Date: Fri, 28 Jun 2019 17:07:01 +0000 (+0200) Subject: Encode URL X-Git-Url: http://git.postgresql.org/gitweb/static/%7B%7Bpguslink%28?a=commitdiff_plain;h=fa3d03c820dfde5ca41b46f16419d38190e582ee;p=hamn.git Encode URL --- diff --git a/redirector/redirector.py b/redirector/redirector.py index 6cce162..cdb2e71 100755 --- a/redirector/redirector.py +++ b/redirector/redirector.py @@ -63,7 +63,7 @@ def application(environ, start_response): ]) return [ b"\n\npostgr.es\n\n\n", - b"moved here\n" % r[0][0], + b"moved here\n" % r[0][0].encode('utf8'), b"\n\n" ] except Exception as ex: