xref: /unit/test/ruby/empty/config.ru (revision 585:17703effc76a)
1*585Szelenkov@nginx.comapp = Proc.new do |env|
2*585Szelenkov@nginx.com    body = env['rack.input'].gets
3*585Szelenkov@nginx.com    #body += env['rack.input'].gets
4*585Szelenkov@nginx.com    ['200', {
5*585Szelenkov@nginx.com        'Content-Length' => body.length.to_s
6*585Szelenkov@nginx.com    }, [body]]
7*585Szelenkov@nginx.comend
8*585Szelenkov@nginx.com
9*585Szelenkov@nginx.comrun app
10