* 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
@ -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>
|
Sat Feb 28 14:50:47 2009 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* ext/socket/lib/socket.rb (BasicSocket#connect_address): returns ::1
|
* ext/socket/lib/socket.rb (BasicSocket#connect_address): returns ::1
|
||||||
|
@ -582,8 +582,11 @@ module Net #:nodoc:
|
|||||||
D "opened"
|
D "opened"
|
||||||
if use_ssl?
|
if use_ssl?
|
||||||
ssl_parameters = Hash.new
|
ssl_parameters = Hash.new
|
||||||
|
iv_list = instance_variables
|
||||||
SSL_ATTRIBUTES.each do |name|
|
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
|
ssl_parameters[name] = value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user