summaryrefslogtreecommitdiff
path: root/lib/feed2imap/httpfetcher.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/feed2imap/httpfetcher.rb')
-rw-r--r--lib/feed2imap/httpfetcher.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/feed2imap/httpfetcher.rb b/lib/feed2imap/httpfetcher.rb
index c72fc32..c7a92c7 100644
--- a/lib/feed2imap/httpfetcher.rb
+++ b/lib/feed2imap/httpfetcher.rb
@@ -33,7 +33,10 @@ MAXREDIR = 5
class HTTPFetcher
def HTTPFetcher::fetcher(baseuri, uri, lastcheck, recursion)
http = Net::HTTP::new(uri.host, uri.port)
- http.use_ssl = true if uri.scheme == 'https'
+ if uri.scheme == 'https'
+ http.use_ssl = true
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
+ end
if defined?(Feed2Imap)
useragent = "Feed2Imap v#{Feed2Imap.version} http://home.gna.org/feed2imap/"
else