Mercurial > p > roundup > code
diff roundup/cgi/wsgi_handler.py @ 6083:f74d078cfd9a
issue2551019 needs to be handled in the action code itself, not the WSGI handler
for Python 3 we always need to encode the output in the client character set
| author | Christof Meerwald <cmeerw@cmeerw.org> |
|---|---|
| date | Sat, 08 Feb 2020 00:29:13 +0000 |
| parents | 274c2c082f68 |
| children | 3cba8949bfe0 |
line wrap: on
line diff
--- a/roundup/cgi/wsgi_handler.py Thu Feb 06 19:48:22 2020 +0000 +++ b/roundup/cgi/wsgi_handler.py Sat Feb 08 00:29:13 2020 +0000 @@ -14,7 +14,7 @@ import roundup.instance from roundup.cgi import TranslationService from roundup.anypy import http_ -from roundup.anypy.strings import s2b, bs2b +from roundup.anypy.strings import s2b from roundup.cgi.client import BinaryFieldStorage @@ -50,7 +50,7 @@ def write(self, data): f = self.request.get_wfile() - self.write = lambda data: f(bs2b(data)) + self.write = f return self.write(data)
