mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
fix when using OpenSSL::SSL::VERIFY_NONE for verify_ssl
This commit is contained in:
parent
be781b9c6d
commit
60742e80e2
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ module RestClient
|
|||
|
||||
net = net_http_class.new(uri.host, uri.port)
|
||||
net.use_ssl = uri.is_a?(URI::HTTPS)
|
||||
if @verify_ssl == false
|
||||
if (@verify_ssl == false) || (@verify_ssl == OpenSSL::SSL::VERIFY_NONE)
|
||||
net.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
||||
elsif @verify_ssl.is_a? Integer
|
||||
net.verify_mode = @verify_ssl
|
||||
|
|
Loading…
Reference in a new issue