wallet-core/node_modules/https-browserify/index.js

15 lines
325 B
JavaScript
Raw Normal View History

2017-05-03 15:35:00 +02:00
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);
}