From d7b479a80a830f6362c10b535882b462cc2fa780 Mon Sep 17 00:00:00 2001 From: empunkt Date: Wed, 12 Jul 2017 07:09:10 +0200 Subject: [PATCH] Fix verify_ssl option --- lib/reverse_proxy/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reverse_proxy/client.rb b/lib/reverse_proxy/client.rb index c6bc70f..bb8c72c 100644 --- a/lib/reverse_proxy/client.rb +++ b/lib/reverse_proxy/client.rb @@ -83,7 +83,7 @@ module ReverseProxy http_options = {} http_options[:use_ssl] = (uri.scheme == "https") - http_options[:verify_mode] = OpenSSL::SSL::VERIFY_NONE if options[:verify_ssl] + http_options[:verify_mode] = OpenSSL::SSL::VERIFY_NONE unless options[:verify_ssl] http_options.merge!(options[:http]) if options[:http] # Make the request