diff options
Diffstat (limited to 'node_modules/https-browserify/index.js')
-rw-r--r-- | node_modules/https-browserify/index.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/https-browserify/index.js b/node_modules/https-browserify/index.js new file mode 100644 index 000000000..853553252 --- /dev/null +++ b/node_modules/https-browserify/index.js @@ -0,0 +1,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); +} |