http_request: reinstate empty StringIO optimization
commitf3b379f938719ed7cdfdf2eb92491db276e2da07
authorEric Wong <normalperson@yhbt.net>
Sat, 15 Aug 2009 04:03:39 +0000 (14 21:03 -0700)
committerEric Wong <normalperson@yhbt.net>
Sat, 15 Aug 2009 09:35:38 +0000 (15 02:35 -0700)
tree25671509d888109e31e1fdd2c87ba407d60844cf
parent91bd32a4aacb4d0ee118c360cba7000e4ede76ee
http_request: reinstate empty StringIO optimization

This makes a noticeable difference on light GET/HEAD requests.
Heck, even the tests run a few seconds faster.
lib/unicorn/http_request.rb
test/unit/test_request.rb