Class: Net::HTTP

Inherits:
Object
  • Object
show all
Defined in:
lib/ssl_patch.rb

Instance Method Summary collapse

Instance Method Details

#orig_use_ssl=Object



5
# File 'lib/ssl_patch.rb', line 5

alias :orig_use_ssl= :use_ssl=

#use_ssl=(flag) ⇒ Object



6
7
8
9
# File 'lib/ssl_patch.rb', line 6

def use_ssl=(flag)
  self.orig_use_ssl=(flag)
  @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
end

#verify_mode=(m) ⇒ Object



11
12
13
# File 'lib/ssl_patch.rb', line 11

def verify_mode=(m)
  # Ignore, don't let open-uri reconfigure verify mode
end