Tests: Ruby module.
This commit is contained in:
11
test/ruby/input_each/config.ru
Normal file
11
test/ruby/input_each/config.ru
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user