blob: 9d209556327b8d40439cffb6304965f4612799fa (
plain) (
blame)
1
2
3
4
5
6
7
|
def application(environ, start_response):
input_length = int(environ.get('HTTP_INPUT_LENGTH'))
body = bytes(environ['wsgi.input'].read(input_length))
start_response('200', [('Content-Length', str(len(body)))])
return [body]
|