Merge pull request #19 from nevesenin/master

Fix verify_ssl option
This commit is contained in:
James Hu 2017-07-11 23:58:00 -07:00 committed by GitHub
commit 9351e3ec88
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ module ReverseProxy
http_options = {} http_options = {}
http_options[:use_ssl] = (uri.scheme == "https") 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] http_options.merge!(options[:http]) if options[:http]
# Make the request # Make the request