summaryrefslogtreecommitdiff
path: root/lib/oxidized/source
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-11-19 20:34:59 +0200
committerGitHub <noreply@github.com>2016-11-19 20:34:59 +0200
commite0da3feeb2fc506af31df0b41e14a3f9c588ef82 (patch)
tree643ce58b4137353eedc6c5ae132aeceed91e20aa /lib/oxidized/source
parent29c800271e8ca796ffdc238025070e4aa4d62aca (diff)
parent44574426d076c15f67ee9738b1c8c86d71910cce (diff)
Merge pull request #618 from laf/ssl-no-verify
Added option to disable ssl verification checks for http source
Diffstat (limited to 'lib/oxidized/source')
-rw-r--r--lib/oxidized/source/http.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/source/http.rb b/lib/oxidized/source/http.rb
index dc1c0b7..4fd388b 100644
--- a/lib/oxidized/source/http.rb
+++ b/lib/oxidized/source/http.rb
@@ -20,6 +20,7 @@ class HTTP < Source
uri = URI.parse(@cfg.url)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true if uri.scheme == 'https'
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE unless @cfg.secure
# map headers
headers = {}