From df0edf5fe693865948759000de194b5fa31a9a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Tue, 1 Nov 2011 16:27:42 +0100 Subject: [PATCH] https: make `https` use new `tls.connect` API Refs #1983. --- lib/https.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/https.js b/lib/https.js index 1c3d61e100..991c63c298 100644 --- a/lib/https.js +++ b/lib/https.js @@ -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) {