Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80529 views
1
var http = require('http');
2
3
var https = module.exports;
4
5
for (var key in http) {
6
if (http.hasOwnProperty(key)) https[key] = http[key];
7
};
8
9
https.request = function (params, cb) {
10
if (!params) params = {};
11
params.scheme = 'https';
12
return http.request.call(this, params, cb);
13
}
14
15