Sha256: 9f74b2f3c30e331dfe9e05ef236201f5c4ea4ce13ff1881c457ccb1c08f42c61

Contents?: true

Size: 289 Bytes

Versions: 10

Compression:

Stored size: 289 Bytes

Contents

require 'open-uri'
require 'net/https'

module Net
  class HTTP
    alias_method :original_use_ssl=, :use_ssl=

    def use_ssl=(flag)
      self.ca_file = NetHttpSslFix::LOCAL_CA_FILE
      self.verify_mode = OpenSSL::SSL::VERIFY_PEER
      self.original_use_ssl = flag
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
net_http_ssl_fix-0.0.10 lib/core_extensions/net/http.rb
net_http_ssl_fix-0.0.9 lib/core_extensions/net/http.rb
net_http_ssl_fix-0.0.8 lib/core_extensions/net/http.rb
net_http_ssl_fix-0.0.7 lib/core_extensions/net/http.rb
net_http_ssl_fix-0.0.6 lib/core_extensions/net/http.rb
net_http_ssl_fix-0.0.5 lib/core_extensions/net/http.rb
net_http_ssl_fix-0.0.4 lib/core_extensions/net/http.rb
net_http_ssl_fix-0.0.3 lib/core_extensions/net/http.rb
net_http_ssl_fix-0.0.2 lib/core_extensions/net/http.rb
net_http_ssl_fix-0.0.1 lib/core_extensions/net/http.rb