aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/net/http.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 82e5ee6cc6..e3716b1bde 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -582,8 +582,11 @@ module Net #:nodoc:
D "opened"
if use_ssl?
ssl_parameters = Hash.new
+ iv_list = instance_variables
SSL_ATTRIBUTES.each do |name|
- if value = instance_variable_get("@#{name}")
+ ivname = "@#{name}".intern
+ if iv_list.include?(ivname) and
+ value = instance_variable_get(ivname)
ssl_parameters[name] = value
end
end