mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/open-uri.rb (OpenURI.open_http): refactoring of r48941.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5328fa259b
commit
15f9e16c5b
1 changed files with 1 additions and 2 deletions
|
@ -295,8 +295,7 @@ module OpenURI
|
|||
http.verify_mode = options[:ssl_verify_mode] || OpenSSL::SSL::VERIFY_PEER
|
||||
store = OpenSSL::X509::Store.new
|
||||
if options[:ssl_ca_cert]
|
||||
certs = options[:ssl_ca_cert].is_a?(Array) ? options[:ssl_ca_cert] : [options[:ssl_ca_cert]]
|
||||
certs.each do |cert|
|
||||
Array(options[:ssl_ca_cert]).each do |cert|
|
||||
if File.directory? cert
|
||||
store.add_path cert
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue