unit/test/ruby/input_rewind/config.ru
2018-03-21 18:26:40 +03:00

8 lines
187 B
Ruby

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