HttpRequest: small improvement for GET requests
commit7110a0dc380c53433e0b76496356abe7ccfa9021
authorEric Wong <normalperson@yhbt.net>
Tue, 24 Mar 2009 08:44:36 +0000 (24 01:44 -0700)
committerEric Wong <normalperson@yhbt.net>
Tue, 24 Mar 2009 08:44:36 +0000 (24 01:44 -0700)
tree984e87a376b87a4231a5b5828d025c51a3fd81d5
parent0b095ea72fb849682a1185a626eef247b5afc1cd
HttpRequest: small improvement for GET requests

Most HTTP requests are GET requests and the majority of those
GET requests are complete after one sysread.  This is especially
true since we're optimized for fast clients.  So short the extra
checks and trust our HTTP parser implementation to do the right
thing (we have decent unit tests for it).
lib/unicorn/http_request.rb