🕷 zenspider.com

by ryan davis



sitemap
Looking for the Ruby Quickref?

https/ssl warning cleanup

Published 2008-05-14 @ 06:21

Tagged ruby

clean up “using default DH parameters” warning for https

class Net::HTTP
  alias :old_use_ssl= :use_ssl=
  def use_ssl= flag
    self.old_use_ssl = flag
    @ssl_context.tmp_dh_callback = proc {}
  end
end