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