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