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