stream_input: read with zero length returns ''
commit3362dc51934c15fd944748e55ba4a470cc60d27d
authorEric Wong <normalperson@yhbt.net>
Wed, 17 Nov 2010 23:36:27 +0000 (18 07:36 +0800)
committerEric Wong <normalperson@yhbt.net>
Wed, 17 Nov 2010 23:36:27 +0000 (18 07:36 +0800)
tree483f0ed5401889855d104fd62cc19784e0397eb4
parent390e351dd1283d4c80a12b744b1327fff091a141
stream_input: read with zero length returns ''

Any calls to read with an explicit zero length now returns an
empty string.  While not explicitly specified by Rack::Lint,
this is for compatibility with StringIO and IO methods which
are common in other web servers.
lib/unicorn/stream_input.rb
test/unit/test_stream_input.rb