summaryrefslogtreecommitdiffhomepage
path: root/test/ruby/input_each/config.ru
blob: 02446998c7b760b73bcc8d15f8d2de5eccef2834 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
app = Proc.new do |env|
    body = ''
    env['rack.input'].each do |value|
        body += value
    end
    ['200', {
        'Content-Length' => body.length.to_s
    }, [body]]
end

run app