xref: /unit/test/ruby/errors_write/config.ru (revision 2094:bd03c2f490d7)
1585Szelenkov@nginx.comapp = Proc.new do |env|
2585Szelenkov@nginx.com    env['rack.errors'].write('Error in application')
3*2094Szelenkov@nginx.com    env['rack.errors'].flush
4*2094Szelenkov@nginx.com    env['rack.errors'].close
5585Szelenkov@nginx.com    ['200', {'Content-Length' => '0'}, ['']]
6585Szelenkov@nginx.comend
7585Szelenkov@nginx.com
8585Szelenkov@nginx.comrun app
9