Class: Net::HTTP
- Inherits:
-
Object
- Object
- Net::HTTP
- Defined in:
- lib/postageapp/utils.rb
Instance Method Summary collapse
-
#__initialize ⇒ Object
Getting rid of the ‘warning: peer certificate won’t be verified in this SSL session’.
-
#initialize(*args) ⇒ HTTP
constructor
A new instance of HTTP.
Constructor Details
#initialize(*args) ⇒ HTTP
Returns a new instance of HTTP.
38 39 40 41 42 43 |
# File 'lib/postageapp/utils.rb', line 38 def initialize(*args) __initialize(*args) @ssl_context = OpenSSL::SSL::SSLContext.new @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE end |
Instance Method Details
#__initialize ⇒ Object
Getting rid of the ‘warning: peer certificate won’t be verified in this SSL session’
37 |
# File 'lib/postageapp/utils.rb', line 37 alias_method :__initialize, :initialize |