Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
https: make https use new tls.connect API
Browse files Browse the repository at this point in the history
Refs #1983.
  • Loading branch information
mmalecki authored and koichik committed Jan 8, 2012
1 parent 4b4d059 commit df0edf5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/https.js
Expand Up @@ -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) {
Expand Down

0 comments on commit df0edf5

Please sign in to comment.