xref: /unit/test/python/body_generate/wsgi.py (revision 1877:e09738cfc6be)
1def application(env, start_response):
2    length = env.get('HTTP_X_LENGTH', '10')
3    bytes = b'X' * int(length)
4
5    start_response('200', [('Content-Length', length)])
6    return [bytes]
7