Tests: added USR1 signal test for unit.log.
This commit is contained in:
9
test/python/log_body/wsgi.py
Normal file
9
test/python/log_body/wsgi.py
Normal file
@@ -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 []
|
||||
Reference in New Issue
Block a user