unit/test/ruby/errors_write/config.ru
2018-03-21 18:26:40 +03:00

6 lines
135 B
Ruby

app = Proc.new do |env|
env['rack.errors'].write('Error in application')
['200', {'Content-Length' => '0'}, ['']]
end
run app