Module: OpenURI

Defined in:
lib/ssl_certifier/open-uri.rb

Constant Summary collapse

CaCertOptions =
{:ssl_ca_cert => File.join(File.expand_path("../../../certs/", __FILE__), 'cacert.pem')}

Class Method Summary collapse

Class Method Details

.open_http(buf, target, proxy, options) ⇒ Object

:nodoc:



7
8
9
10
# File 'lib/ssl_certifier/open-uri.rb', line 7

def OpenURI.open_http(buf, target, proxy, options) # :nodoc:
  options = CaCertOptions.merge(options)
  OpenURI.open_http_without_ca_cert(buf, target, proxy, options)
end

.open_http_without_ca_certObject



5
# File 'lib/ssl_certifier/open-uri.rb', line 5

alias_method :open_http_without_ca_cert, :open_http