isaiah / jubilee

A rack server built upon vert.x
http://isaiah.github.io/jubilee
MIT License
327 stars 18 forks source link

IORackInput#gets doesn't work #14

Closed iconara closed 10 years ago

iconara commented 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.

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