http_request: avoid StringIO.new for GET/HEAD requests
commit1eddd7ee690f967c913d8c14505f4db994876568
authorEric Wong <normalperson@yhbt.net>
Sun, 3 May 2009 20:51:05 +0000 (3 13:51 -0700)
committerEric Wong <normalperson@yhbt.net>
Sun, 3 May 2009 20:51:05 +0000 (3 13:51 -0700)
treeedea7a4867a15fd0be209c4b43653d67d3486e36
parent362d01204be6e0b7c04e8891499b4fe4e12fd535
http_request: avoid StringIO.new for GET/HEAD requests

Since the vast majority of web traffic is GET/HEAD
requests without bodies, avoid creating a StringIO
object for every single request that comes in.
lib/unicorn/http_request.rb