https: make https use new tls.connect API

Refs #1983.
This commit is contained in:
Maciej Małecki 2011-11-01 16:27:42 +01:00 committed by koichik
parent 4b4d059791
commit df0edf5fe6

View File

@ -52,7 +52,9 @@ exports.createServer = function(opts, requestListener) {
// HTTPS agents.
function createConnection(port, host, options) {
return tls.connect(port, host, options);
options.port = port;
options.host = host;
return tls.connect(options);
};
function Agent(options) {