wallet-core/node_modules/https-browserify/index.js
2017-05-03 15:35:00 +02:00

15 lines
325 B
JavaScript

var http = require('http');
var https = module.exports;
for (var key in http) {
if (http.hasOwnProperty(key)) https[key] = http[key];
};
https.request = function (params, cb) {
if (!params) params = {};
params.scheme = 'https';
params.protocol = 'https:';
return http.request.call(this, params, cb);
}