xref: /unit/test/ruby/input_rewind/config.ru (revision 585:17703effc76a)
1app = Proc.new do |env|
2    env['rack.input'].read
3    env['rack.input'].rewind
4    body = env['rack.input'].read
5    ['200', {'Content-Length' => body.length.to_s}, [body]]
6end
7
8run app
9