xref: /unit/test/ruby/errors_write_to_s_custom/config.ru (revision 585:17703effc76a)
1*585Szelenkov@nginx.comapp = Proc.new do |env|
2*585Szelenkov@nginx.com
3*585Szelenkov@nginx.com    class Custom
4*585Szelenkov@nginx.com        def to_s()
5*585Szelenkov@nginx.com            nil
6*585Szelenkov@nginx.com        end
7*585Szelenkov@nginx.com    end
8*585Szelenkov@nginx.com
9*585Szelenkov@nginx.com    e = Custom.new()
10*585Szelenkov@nginx.com
11*585Szelenkov@nginx.com    env['rack.errors'].write(e)
12*585Szelenkov@nginx.com    ['200', {'Content-Length' => '0'}, ['']]
13*585Szelenkov@nginx.comend
14*585Szelenkov@nginx.com
15*585Szelenkov@nginx.comrun app
16