tee_input: make interface more usable outside of Unicorn
commit60f9bcd4ba54d84a4b2e2cd621d5995ddf206ace
authorEric Wong <normalperson@yhbt.net>
Sat, 15 Aug 2009 04:03:40 +0000 (14 21:03 -0700)
committerEric Wong <normalperson@yhbt.net>
Sat, 15 Aug 2009 09:35:38 +0000 (15 02:35 -0700)
tree962d5b9ef2633af63aed070503cf86d607780ade
parentf3b379f938719ed7cdfdf2eb92491db276e2da07
tee_input: make interface more usable outside of Unicorn

TeeInput being needed is now (once again) an uncommon code path
so there's no point in relying on global constants.  While we're
at it, allow StringIO to be used in the presence of small
inputs; too.
lib/unicorn/http_request.rb
lib/unicorn/tee_input.rb
test/unit/test_tee_input.rb