blob: 0ec07a682ee26df00b4d988ce14b325f073b2c13 (
plain) (
blame)
1
2
3
4
5
6
7
8
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.decode())
environ['wsgi.errors'].flush()
start_response('200', [('Content-Length', '0')])
return []
|