blob: e4df67ec0d5c1cdc9b163a7661ebd8cb5786934e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
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-Type', environ.get('CONTENT_TYPE')),
('Content-Length', str(len(body)))
])
return [body]
|