Module: Net::HTTP::STFU

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

Instance Method Summary collapse

Instance Method Details

#use_ssl=(flag) ⇒ Object



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

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

#warn(msg) ⇒ Object



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

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