From 6ecafe0c9865c4187bbf4037fb4e4ac4115e3847 Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 14 Dec 2018 09:44:20 +0000 Subject: 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/trunk@66401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/net') diff --git a/lib/net/http.rb b/lib/net/http.rb index ccaad54f7d..31cbb7a866 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -22,9 +22,9 @@ require_relative 'protocol' require 'uri' +autoload :OpenSSL, 'openssl' module Net #:nodoc: - autoload :OpenSSL, 'openssl' # :stopdoc: class HTTPBadResponse < StandardError; end -- cgit v1.2.3