https: Use secureProtocol in Agent#getName

Refs: https://github.com/nodejs/node/issues/9324
PR-URL: https://github.com/nodejs/node/pull/9452
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Andreas Lind authored and Italo A. Casas committed 2017-01-27 08:11:56 -05:00
1 parent 160d0381d2
commit c012dd79dc
3 files changed
+66 -2

No files matched your search

+4
View File
@@ -143,6 +143,10 @@ Agent.prototype.getName = function getName(options) {
if (options.servername && options.servername !== options.host)
name += options.servername;
name += ':';
if (options.secureProtocol)
name += options.secureProtocol;
return name;
};