Class: SELF_SSL::Net_HTTP

Inherits:
Net::HTTP
  • Object
show all
Defined in:
lib/rxen.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Net_HTTP

Returns a new instance of Net_HTTP.



26
27
28
29
30
31
32
# File 'lib/rxen.rb', line 26

def initialize(*args)
	super
	@ssl_context = OpenSSL::SSL::SSLContext.new
	# Set verify mode to VERIFY_NONE to not display a warning on 
	# self signed certificates
	@ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
end