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

16 lines
210 B
Ruby

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