Commit 7d794123 authored by Malcolm Ahoy's avatar Malcolm Ahoy Committed by Rich Trott
Browse files

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: default avatarJulian Duque <julianduquej@gmail.com>
Reviewed-By: default avatarRich Trott <rtrott@gmail.com>
parent e7a3ca3d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment