From 60742e80e24e66fd089d2771ea83de663ec7d056 Mon Sep 17 00:00:00 2001 From: Julien Kirch Date: Fri, 6 May 2011 17:19:47 +0200 Subject: [PATCH] fix when using OpenSSL::SSL::VERIFY_NONE for verify_ssl --- lib/restclient/request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/restclient/request.rb b/lib/restclient/request.rb index cedb06e..44e4243 100644 --- a/lib/restclient/request.rb +++ b/lib/restclient/request.rb @@ -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