xref: /unit/test/ruby/input_gets_all/config.ru (revision 585:17703effc76a)
1app = Proc.new do |env|
2    body = ''
3    buf = ''
4    loop do
5        buf = env['rack.input'].gets
6        break if buf == nil
7        body += buf
8    end
9    ['200', {
10        'Content-Length' => body.length.to_s
11    }, [body]]
12end
13
14run app
15