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

run app