summaryrefslogtreecommitdiff
path: root/lib/oxidized/source/http.rb
diff options
context:
space:
mode:
authorNeil Lathwood <neil@lathwood.co.uk>2016-11-19 14:16:20 +0000
committerNeil Lathwood <neil@lathwood.co.uk>2016-11-19 14:16:20 +0000
commit59e82bba2befb6ef5049ea9ae4e876327f3da158 (patch)
treeb82d0647c652d42e9d6bedb82b09347311e52593 /lib/oxidized/source/http.rb
parent29c800271e8ca796ffdc238025070e4aa4d62aca (diff)
Added option to disable ssl verification checks for http source
Diffstat (limited to 'lib/oxidized/source/http.rb')
-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..6f16aee 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 if uri.no_check_certificate == true
# map headers
headers = {}