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