diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-12 05:18:22 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-12 05:18:22 +0000 |
commit | 08795f9cebf686f6caa2cd7f4791cc6b9ed8a78b (patch) | |
tree | 4e0ff6348e8ad474d98e0fcb88743d9be3608272 /lib/net | |
parent | 3c1fca24e2e6fc695711838a8f681132ad7bdbca (diff) | |
download | ruby-08795f9cebf686f6caa2cd7f4791cc6b9ed8a78b.tar.gz |
* lib/net/http.rb (Net::HTTP#initialize): initialize net/https variables to supress syntax warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/http.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 71b554e035..c19064bf6d 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -486,6 +486,11 @@ module Net #:nodoc: @enable_post_connection_check = true @compression = nil @sspi_enabled = false + if defined?(SSL_ATTRIBUTES) + SSL_ATTRIBUTES.each do |name| + instance_variable_set "@#{name}", nil + end + end end def inspect |