Enhancement: Add :verify_ssl
boolean options to UserAgent request methods.
This commit is contained in:
parent
b52e49e6e6
commit
33b682400d
1 changed files with 4 additions and 2 deletions
|
@ -318,9 +318,11 @@ returns
|
|||
|
||||
if uri.scheme.match?(/https/i)
|
||||
http.use_ssl = true
|
||||
# @TODO verify_mode should be configurable
|
||||
|
||||
if !options.fetch(:verify_ssl, false)
|
||||
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
||||
end
|
||||
end
|
||||
|
||||
http
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue