1
0
Fork 0
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:
Julien Kirch 2011-05-06 17:19:47 +02:00
parent be781b9c6d
commit 60742e80e2

View file

@ -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