summaryrefslogtreecommitdiffhomepage
path: root/test/ruby/input_read_parts/config.ru
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/input_read_parts/config.ru')
-rw-r--r--test/ruby/input_read_parts/config.ru10
1 files changed, 10 insertions, 0 deletions
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