mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/http.rb: suppress warnings of non-existing instance variable
access for SSL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
54cd7ea168
commit
8746e342bc
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Feb 28 16:18:39 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/net/http.rb: suppress warnings of non-existing instance variable
|
||||
access for SSL.
|
||||
|
||||
Sat Feb 28 14:50:47 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/lib/socket.rb (BasicSocket#connect_address): returns ::1
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue