From: Fredrik Tolf Date: Thu, 10 Aug 2023 11:18:22 +0000 (+0200) Subject: python3: Encode ashd-wsgi3 output headers with utf-8 instead of latin-1. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=eaefded0a959b59f441d50cfb30fc08497078fe1;p=ashd.git python3: Encode ashd-wsgi3 output headers with utf-8 instead of latin-1. --- diff --git a/python3/ashd-wsgi3 b/python3/ashd-wsgi3 index 2ca259a..c10bfc9 100755 --- a/python3/ashd-wsgi3 +++ b/python3/ashd-wsgi3 @@ -151,7 +151,7 @@ def recode(thing): if isinstance(thing, collections.abc.ByteString): return thing else: - return str(thing).encode("latin-1") + return str(thing).encode("utf-8") class request(ashd.serve.wsgirequest): def __init__(self, *, bkreq, **kw):