diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-03-30 14:18:41 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-03-30 14:18:41 +0300 |
commit | ab7b42a072e741b226749c416440f89fcaff3d2c (patch) | |
tree | 6f354e73a9cd446cefa80dcb0b466e6ceaa5b025 /test/python/log_body | |
parent | 82b899b1365431951afc1da9b2b30065ac98fc94 (diff) | |
download | unit-ab7b42a072e741b226749c416440f89fcaff3d2c.tar.gz unit-ab7b42a072e741b226749c416440f89fcaff3d2c.tar.bz2 |
Handling change file message in libunit.
This is required for proper log file rotation action.
Diffstat (limited to 'test/python/log_body')
-rw-r--r-- | test/python/log_body/wsgi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/python/log_body/wsgi.py b/test/python/log_body/wsgi.py index 9dcb1b0c..0ec07a68 100644 --- a/test/python/log_body/wsgi.py +++ b/test/python/log_body/wsgi.py @@ -2,7 +2,7 @@ def application(environ, start_response): content_length = int(environ.get('CONTENT_LENGTH', 0)) body = bytes(environ['wsgi.input'].read(content_length)) - environ['wsgi.errors'].write(body) + environ['wsgi.errors'].write(body.decode()) environ['wsgi.errors'].flush() start_response('200', [('Content-Length', '0')]) |