prefer "[]" to "first"/"last" where possible
commit6ea71159e2557eca51d2388f07ab552c69a44dd7
authorEric Wong <normalperson@yhbt.net>
Thu, 8 Jul 2010 05:33:49 +0000 (8 05:33 +0000)
committerEric Wong <normalperson@yhbt.net>
Thu, 8 Jul 2010 05:40:47 +0000 (8 05:40 +0000)
tree99164e633ebf8eccf57e724c8a1a82702bbfca93
parent4fa17dfb4adef0945d73e692147a3302b8dd9b74
prefer "[]" to "first"/"last" where possible

"[]" is slightly faster under Ruby 1.9 (but slightly
slower under 1.8).
(cherry picked from commit 5ece8c1c33f10e6496dfe5ae1d0d368293278d2d)
lib/unicorn.rb
lib/unicorn/http_request.rb