Tests: Ruby module.
This commit is contained in:
14
test/ruby/input_gets_all/config.ru
Normal file
14
test/ruby/input_gets_all/config.ru
Normal file
@@ -0,0 +1,14 @@
|
||||
app = Proc.new do |env|
|
||||
body = ''
|
||||
buf = ''
|
||||
loop do
|
||||
buf = env['rack.input'].gets
|
||||
break if buf == nil
|
||||
body += buf
|
||||
end
|
||||
['200', {
|
||||
'Content-Length' => body.length.to_s
|
||||
}, [body]]
|
||||
end
|
||||
|
||||
run app
|
||||
Reference in New Issue
Block a user