FIX: Some RSS feeds do unsafe redirects

There are people who have RSS feeds set up that do HTTPS -> HTTP
redirects which throw errors. Since RSS feeds are all configured
by admins I think it's OK if they allow an unsafe redirect as the
content is public anyway. This will reduce many server side errors.
This commit is contained in:
Robin Ward 2015-09-18 13:25:09 -04:00
parent e7af8d2239
commit 40934e595a

View File

@ -66,7 +66,7 @@ module Jobs
private private
def rss def rss
SimpleRSS.parse open(@feed_url) SimpleRSS.parse open(@feed_url, allow_redirections: :all)
end end
end end