fixed missing declared var, passing empty httpsOptions