summaryrefslogblamecommitdiffhomepage
path: root/test/ruby/errors_write_to_s_custom/config.ru
blob: 9eb06d1addc78c5be073f35919593564ab2d8bf5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                            
app = Proc.new do |env|

    class Custom
        def to_s()
            nil
        end
    end

    e = Custom.new()

    env['rack.errors'].write(e)
    ['200', {'Content-Length' => '0'}, ['']]
end

run app