From 38cfe4cf3d9fd2a4ed0f3949586126a7b8144e8e Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Wed, 23 Oct 2019 16:59:53 +0300 Subject: Tests: added USR1 signal test for unit.log. --- test/python/log_body/wsgi.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/python/log_body/wsgi.py (limited to 'test/python/log_body/wsgi.py') diff --git a/test/python/log_body/wsgi.py b/test/python/log_body/wsgi.py new file mode 100644 index 00000000..9dcb1b0c --- /dev/null +++ b/test/python/log_body/wsgi.py @@ -0,0 +1,9 @@ +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'].flush() + + start_response('200', [('Content-Length', '0')]) + return [] -- cgit