Skip to content

Commit df0edf5

Browse files
mmaleckikoichik
authored andcommitted
https: make https use new tls.connect API
Refs nodejs#1983.
1 parent 4b4d059 commit df0edf5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/https.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ exports.createServer = function(opts, requestListener) {
5252
// HTTPS agents.
5353

5454
function createConnection(port, host, options) {
55-
return tls.connect(port, host, options);
55+
options.port = port;
56+
options.host = host;
57+
return tls.connect(options);
5658
};
5759

5860
function Agent(options) {

0 commit comments

Comments
 (0)