Module: Net::HTTP::STFU

Included in:
Net::HTTP
Defined in:
lib/fbomb.rb

Instance Method Summary collapse

Instance Method Details

#use_ssl=(flag) ⇒ Object



148
149
150
151
152
# File 'lib/fbomb.rb', line 148

def use_ssl=(flag)
  super
ensure
  @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
end

#warn(msg) ⇒ Object



144
145
146
# File 'lib/fbomb.rb', line 144

def warn(msg)
  #Kernel.warn(msg) unless msg == "warning: peer certificate won't be verified in this SSL session"
end