diff options
author | Brendan Ashworth <brendan.ashworth@me.com> | 2015-05-04 19:24:59 -0700 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2015-08-04 11:56:17 -0700 |
commit | 2965442308ea72e76f2b982d0c1ee74304676d5a (patch) | |
tree | a986441ee1caf6451712ff7a04520320e8fd23d1 /lib/_http_agent.js | |
parent | 4cffaa3f558bd1154759c5175ca773f809b68be6 (diff) | |
download | android-node-v8-2965442308ea72e76f2b982d0c1ee74304676d5a.tar.gz android-node-v8-2965442308ea72e76f2b982d0c1ee74304676d5a.tar.bz2 android-node-v8-2965442308ea72e76f2b982d0c1ee74304676d5a.zip |
http: fix agent.getName() and add tests
This commit fixes agent.getName(), which returned an extra colon
according to the docs, and adds tests (it was previously not unit
tested).
PR-URL: https://github.com/nodejs/io.js/pull/1617
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'lib/_http_agent.js')
-rw-r--r-- | lib/_http_agent.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/_http_agent.js b/lib/_http_agent.js index 9208044a94..1db331c3d1 100644 --- a/lib/_http_agent.js +++ b/lib/_http_agent.js @@ -107,7 +107,6 @@ Agent.prototype.getName = function(options) { name += ':'; if (options.localAddress) name += options.localAddress; - name += ':'; return name; }; |