http: don't slice unless necessary
authorTrevor Norris <trev.norris@gmail.com>
Wed, 15 May 2013 21:58:14 +0000 (14:58 -0700)
committerTrevor Norris <trev.norris@gmail.com>
Wed, 15 May 2013 22:10:56 +0000 (15:10 -0700)
commit88333f7ace007dc0ef57803b954c55976f523ffa
tree2eb77a62c2cbbae4d7dda983036ee4e85cc069ec
parentf0d80d7db0df9f3be325eb160c3e7fff3902239c
http: don't slice unless necessary

The incoming Buffer was being sliced just to possibly not be used.
Instead place the .slice inside the conditional to not be created unless
necessary.
lib/_http_server.js