Tests: Ruby input.rewind is no longer required.
For more information see: https://github.com/rack/rack/commit/42aff22f708123839ba706cbe659d108b47c40c7
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
app = Proc.new do |env|
|
||||
env['rack.input'].read
|
||||
env['rack.input'].rewind
|
||||
body = env['rack.input'].read
|
||||
['200', {'Content-Length' => body.length.to_s}, [body]]
|
||||
end
|
||||
|
||||
run app
|
||||
Reference in New Issue
Block a user