Skip to content

Commit d6e190c

Browse files
committed
specify protocol in request
1 parent df83537 commit d6e190c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dist/rss-parser.js

+1
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ Parser.parseURL = function(feedUrl, callback) {
186186
var get = feedUrl.indexOf('https') === 0 ? HTTPS.get : HTTP.get;
187187
var parsedUrl = url.parse(feedUrl);
188188
var req = get({
189+
protocol: parsedUrl.protocol,
189190
hostname: parsedUrl.hostname,
190191
path: parsedUrl.path,
191192
headers: {'User-Agent': 'rss-parser'}

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ Parser.parseURL = function(feedUrl, callback) {
183183
var get = feedUrl.indexOf('https') === 0 ? HTTPS.get : HTTP.get;
184184
var parsedUrl = url.parse(feedUrl);
185185
var req = get({
186+
protocol: parsedUrl.protocol,
186187
hostname: parsedUrl.hostname,
187188
path: parsedUrl.path,
188189
headers: {'User-Agent': 'rss-parser'}

0 commit comments

Comments
 (0)