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 | 07538e558afb0298a868911b60dd1e35d40d2a05 (patch) | |
tree | 4e0ff6348e8ad474d98e0fcb88743d9be3608272 | |
parent | 12b2f196463f982408cd340b7007d1270cab5beb (diff) | |
download | ruby-07538e558afb0298a868911b60dd1e35d40d2a05.tar.gz ruby-07538e558afb0298a868911b60dd1e35d40d2a05.tar.xz ruby-07538e558afb0298a868911b60dd1e35d40d2a05.zip |
* lib/net/http.rb (Net::HTTP#initialize): initialize net/https variables to supress syntax warning.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 71b554e03..c19064bf6 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 |