Closed iconara closed 10 years ago
IORackInput#gets and IORackInput#each don't work as expected. Running the app below outputs "1 lines" regardless of the number of lines you post.
IORackInput#gets
IORackInput#each
run lambda { |env| n = 0 env['rack.input'].each do |line| n += 1 end [200, {}, ["#{n} lines"]] }
$ curl 'http://localhost:8080/' -XPOST -d "foo\nbar\nfoo\n" 1 lines
IORackInput#gets
andIORackInput#each
don't work as expected. Running the app below outputs "1 lines" regardless of the number of lines you post.