summaryrefslogtreecommitdiffhomepage
path: root/test/ruby/errors_write/config.ru
blob: 79ee4d1dcf5428b674e793ecf47199d7f96134a2 (plain) (blame)
1
2
3
4
5
6
7
8
app = Proc.new do |env|
    env['rack.errors'].write('Error in application')
    env['rack.errors'].flush
    env['rack.errors'].close
    ['200', {'Content-Length' => '0'}, ['']]
end

run app