summaryrefslogblamecommitdiffhomepage
path: root/test/ruby/input_gets/config.ru
blob: 151fe2354228f9faa44aea05d66ea076a1701e58 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                 
                           





                                            
app = Proc.new do |env|
    body = env['rack.input'].gets
    env['rack.input'].close
    ['200', {
        'Content-Length' => body.length.to_s
    }, [body]]
end

run app