xref: /unit/test/python/errors_write/wsgi.py (revision 1242:58ee3ef5a061)
1603Szelenkov@nginx.comdef application(environ, start_response):
2603Szelenkov@nginx.com    environ['wsgi.errors'].write('Error in application.')
3*1242Szelenkov@nginx.com    environ['wsgi.errors'].flush()
4603Szelenkov@nginx.com
5603Szelenkov@nginx.com    start_response('200', [('Content-Length', '0')])
6603Szelenkov@nginx.com    return []
7