http: default Agent.getName to 'localhost'
authorMalcolm Ahoy <malcolmahoy@gmail.com>
Fri, 11 Sep 2015 21:18:01 +0000 (14:18 -0700)
committerJeremiah Senkpiel <fishrock123@rocketmail.com>
Wed, 16 Sep 2015 15:40:59 +0000 (11:40 -0400)
commit431bf74c5550a7c15ada1d99b4b1bdefd6bbb86b
treebee28be082941f52f9fefb2b5d9a1080649288b9
parent0a5f80a11f044ef9b6e3a8be1d588ee9217163f2
http: default Agent.getName to 'localhost'

Refactor out the if/else statement checking for option.host.
Add whitespace to make concatenation chunks more readable and
consistent with the https version of Agent.getName().

PR-URL: https://github.com/nodejs/node/pull/2825
Reviewed-By: Julian Duque <julianduquej@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
lib/_http_agent.js