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 Myles Borins committed 2017-11-14 13:44:54 -05:00
1 parent 1bd6962842
commit 92b13e455f
3 files changed
+66 -2

No files matched your search

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