summaryrefslogtreecommitdiff
path: root/lib/feed2imap/httpfetcher.rb
diff options
context:
space:
mode:
authorlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-01-11 12:29:53 +0000
committerlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-01-11 12:29:53 +0000
commitfc53a6dca11ba46317deead9e3d308305c06b6f5 (patch)
treed1d0cb64bae60a52fc280fcc9a67ccfab626d4fa /lib/feed2imap/httpfetcher.rb
parent075db8674b9e8e31585f57dc7f02f2d03a45f045 (diff)
downloadfeed2imap-fc53a6dca11ba46317deead9e3d308305c06b6f5.tar.gz
feed2imap-fc53a6dca11ba46317deead9e3d308305c06b6f5.tar.bz2
feed2imap-fc53a6dca11ba46317deead9e3d308305c06b6f5.zip
prepared release of 0.6
git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@78 f70e237a-67f3-0310-a06c-d2b8a7116972
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