blob: eb1fb92275ac2968107eadd9e0ff6a674d8f4b74 (
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))
start_response('200', [
('Content-Length', str(len(body)))
])
return [body]
|