Class: Net::HTTP
- Inherits:
-
Object
- Object
- Net::HTTP
- Defined in:
- lib/better_jira/net_http_ssl_hack.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ HTTP
constructor
A new instance of HTTP.
- #old_initialize ⇒ Object
Constructor Details
#initialize(*args) ⇒ HTTP
Returns a new instance of HTTP.
6 7 8 9 10 |
# File 'lib/better_jira/net_http_ssl_hack.rb', line 6 def initialize(*args) old_initialize(*args) @ssl_context = OpenSSL::SSL::SSLContext.new @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE end |
Instance Method Details
#old_initialize ⇒ Object
5 |
# File 'lib/better_jira/net_http_ssl_hack.rb', line 5 alias_method :old_initialize, :initialize |