Enhancement: Add :verify_ssl boolean options to UserAgent request methods.

This commit is contained in:
Thorsten Eckel 2020-09-30 14:30:02 +02:00
parent b52e49e6e6
commit 33b682400d

View file

@ -318,8 +318,10 @@ returns
if uri.scheme.match?(/https/i)
http.use_ssl = true
# @TODO verify_mode should be configurable
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
if !options.fetch(:verify_ssl, false)
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
end
end
http