summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-23 13:48:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-23 13:48:36 +0000
commitcf6116150c43ffa8cce7c4d0696bb54a2c8e49a8 (patch)
tree70b7bc545790f134f27cc42fca72e9327f045e5d
parent7255d93b08909a0117840083322dc27d5568c423 (diff)
autoload in module scope.
* lib/net/http.rb (Net::OpenSSL): get rid of autoload in global scope not to make tests confused. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/net/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 7343762564..e0b0dea2bf 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -21,9 +21,9 @@
require 'net/protocol'
require 'uri'
-autoload :OpenSSL, 'openssl'
module Net #:nodoc:
+ autoload :OpenSSL, 'openssl'
# :stopdoc:
class HTTPBadResponse < StandardError; end