diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-26 11:06:53 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-26 11:06:53 +0000 |
commit | 9d4db2d4d9549d5547c50d8049c4448d10816651 (patch) | |
tree | fb2218d58b3f4324dc2ee6dcfc948eef5f7f6465 /lib/net | |
parent | 5fa9e5c3668bb947039146e8dc6279ce71d8d9fe (diff) | |
download | ruby-9d4db2d4d9549d5547c50d8049c4448d10816651.tar.gz |
* lib/net/http.rb (Net::HTTP::SSL_ATTRIBUTES): refix 33701.
store instance variable symbol names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/http.rb | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 1c594e0e4d..2fd81e0d2c 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -591,7 +591,7 @@ module Net #:nodoc: @sspi_enabled = false if defined?(SSL_ATTRIBUTES) SSL_ATTRIBUTES.each do |name| - instance_variable_set "@#{name}", nil + instance_variable_set name, nil end end end @@ -675,17 +675,17 @@ module Net #:nodoc: end SSL_ATTRIBUTES = [ - :ca_file, - :ca_path, - :cert, - :cert_store, - :ciphers, - :key, - :ssl_timeout, - :ssl_version, - :verify_callback, - :verify_depth, - :verify_mode, + :@ca_file, + :@ca_path, + :@cert, + :@cert_store, + :@ciphers, + :@key, + :@ssl_timeout, + :@ssl_version, + :@verify_callback, + :@verify_depth, + :@verify_mode, ] # Sets path of a CA certification file in PEM format. @@ -773,8 +773,7 @@ module Net #:nodoc: if use_ssl? ssl_parameters = Hash.new iv_list = instance_variables - SSL_ATTRIBUTES.each do |name| - ivname = "@#{name}".intern + SSL_ATTRIBUTES.each do |ivname| if iv_list.include?(ivname) and value = instance_variable_get(ivname) ssl_parameters[name] = value |