From c7e67446a3054998893d64cbab150810d2a99aa5 Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Wed, 21 Mar 2018 18:26:40 +0300 Subject: Tests: Ruby module. --- test/ruby/input_read_parts/config.ru | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/ruby/input_read_parts/config.ru (limited to 'test/ruby/input_read_parts') diff --git a/test/ruby/input_read_parts/config.ru b/test/ruby/input_read_parts/config.ru new file mode 100644 index 00000000..59016a7b --- /dev/null +++ b/test/ruby/input_read_parts/config.ru @@ -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 -- cgit