def application(environ, start_response):
output = ['%s: %s' % (key, value) for key, value in sorted(environ.items())]
output = '\n'.join(output)
response_headers = [
('Content-Length', str(len(output))),
('Content-Type', 'text/plain'),
]
start_response('200 OK', response_headers)
return [output]
No comments:
Post a Comment