From 08795f9cebf686f6caa2cd7f4791cc6b9ed8a78b Mon Sep 17 00:00:00 2001 From: aamine Date: Tue, 12 Aug 2008 05:18:22 +0000 Subject: * 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 --- lib/net/http.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3