diff options
Diffstat (limited to 'test/ruby/input_each')
-rw-r--r-- | test/ruby/input_each/config.ru | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ruby/input_each/config.ru b/test/ruby/input_each/config.ru new file mode 100644 index 00000000..02446998 --- /dev/null +++ b/test/ruby/input_each/config.ru @@ -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 |