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

run app