mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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:
1 parent
1bd6962842
commit
92b13e455f
3 files changed
+66
-2
No files matched your search
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user