25 lines
310 B
JavaScript
25 lines
310 B
JavaScript
|
|
||
|
/**
|
||
|
* Module dependencies.
|
||
|
*/
|
||
|
|
||
|
var http = require('./http');
|
||
|
var https = require('https');
|
||
|
|
||
|
/**
|
||
|
* Module exports.
|
||
|
*/
|
||
|
|
||
|
module.exports = get;
|
||
|
|
||
|
/**
|
||
|
* Returns a Readable stream from an "https:" URI.
|
||
|
*
|
||
|
* @api protected
|
||
|
*/
|
||
|
|
||
|
function get (parsed, opts, fn) {
|
||
|
opts.http = https;
|
||
|
http(parsed, opts, fn);
|
||
|
}
|