Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python3: Encode ashd-wsgi3 output headers with utf-8 instead of latin-1.
[ashd.git]
/
python3
/
ashd-wsgi3
diff --git
a/python3/ashd-wsgi3
b/python3/ashd-wsgi3
index
2ca259a
..
c10bfc9
100755
(executable)
--- a/
python3/ashd-wsgi3
+++ b/
python3/ashd-wsgi3
@@
-151,7
+151,7
@@
def recode(thing):
if isinstance(thing, collections.abc.ByteString):
return thing
else:
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):
class request(ashd.serve.wsgirequest):
def __init__(self, *, bkreq, **kw):