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