diff options
Diffstat (limited to 'test/ruby/input_gets/config.ru')
-rw-r--r-- | test/ruby/input_gets/config.ru | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/input_gets/config.ru b/test/ruby/input_gets/config.ru new file mode 100644 index 00000000..1a6633ab --- /dev/null +++ b/test/ruby/input_gets/config.ru @@ -0,0 +1,8 @@ +app = Proc.new do |env| + body = env['rack.input'].gets + ['200', { + 'Content-Length' => body.length.to_s + }, [body]] +end + +run app |