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