xref: /unit/test/python/input_readlines/wsgi.py (revision 1400:cbd75efbfb74)
1*1400Smax.romanov@nginx.comdef application(environ, start_response):
2*1400Smax.romanov@nginx.com    body = environ['wsgi.input'].readlines()
3*1400Smax.romanov@nginx.com
4*1400Smax.romanov@nginx.com    start_response('200', [('X-Lines-Count', str(len(body)))])
5*1400Smax.romanov@nginx.com    return body
6