stream_input: small cleanups and fixes
commit5bc239fd154a7eaebeb024394f8e0b507bbf4c5a
authorEric Wong <normalperson@yhbt.net>
Fri, 19 Nov 2010 20:51:57 +0000 (19 20:51 +0000)
committerEric Wong <normalperson@yhbt.net>
Fri, 19 Nov 2010 22:51:58 +0000 (20 06:51 +0800)
tree1962f3f02e5fb7dfe0b3f533e053b8d1bee330fb
parentd12e10ea88c7adeb97094e4b835201e4c2ce52ab
stream_input: small cleanups and fixes

No need to accept any number of args, that could hide bugs in
applications that could give three or more arguments.  We also
raise ArgumentError when given a negative length argument to
read.
lib/unicorn/stream_input.rb
test/unit/test_stream_input.rb