Class: Net::HTTP

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

Overview

clean up “using default DH parameters” warning for https

Instance Method Summary collapse

Instance Method Details

#old_use_ssl=Object



21
22
23
24
# File 'lib/rubyforge/client.rb', line 21

def use_ssl= flag
  self.old_use_ssl = flag
  @ssl_context.tmp_dh_callback = proc {} if @ssl_context
end

#use_ssl=(flag) ⇒ Object



22
23
24
25
# File 'lib/rubyforge/client.rb', line 22

def use_ssl= flag
  self.old_use_ssl = flag
  @ssl_context.tmp_dh_callback = proc {} if @ssl_context
end