https: make `https` use new `tls.connect` API
authorMaciej Małecki <maciej.malecki@notimplemented.org>
Tue, 1 Nov 2011 15:27:42 +0000 (16:27 +0100)
committerkoichik <koichik@improvement.jp>
Sun, 8 Jan 2012 10:13:18 +0000 (11:13 +0100)
Refs #1983.

lib/https.js

index 1c3d61e..991c63c 100644 (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) {