From 67305e790df68b4009862e7a971fa7c075de5cea Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 31 Jan 2019 10:55:37 +0000 Subject: merge revision(s) 66401: [Backport #15412] Move autoload to toplevel So that classes which uses Net::HTTP with https can use OpenSSL namespace for example exception classes like OpenSSL::SSL::SSLError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@66964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/net/http.rb b/lib/net/http.rb index 5a22fc0015..3ff0ebceee 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -22,9 +22,9 @@ require 'net/protocol' require 'uri' +autoload :OpenSSL, 'openssl' module Net #:nodoc: - autoload :OpenSSL, 'openssl' # :stopdoc: class HTTPBadResponse < StandardError; end -- cgit v1.2.3