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