aboutsummaryrefslogtreecommitdiff
path: root/node_modules/https-browserify/index.js
blob: 853553252e0bb989d8660f8007fd823d5ed994c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}