summaryrefslogtreecommitdiffhomepage
path: root/test/ruby/input_read_empty
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/input_read_empty')
-rw-r--r--test/ruby/input_read_empty/config.ru6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/input_read_empty/config.ru b/test/ruby/input_read_empty/config.ru
new file mode 100644
index 00000000..92e885c5
--- /dev/null
+++ b/test/ruby/input_read_empty/config.ru
@@ -0,0 +1,6 @@
+app = Proc.new do |env|
+ body = env['rack.input'].read
+ ['200', {'Content-Length' => body.length.to_s}, [body]]
+end
+
+run app