зеркало из https://github.com/github/ruby.git
* lib/net/http.rb (HTTPResponse#to_ary): should return an object which does not respond to #to_ary. It causes infinite loop in puts. [ruby-core:02578]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
1c1a61a436
Коммит
87275504ab
|
@ -1,3 +1,9 @@
|
|||
Fri Mar 5 19:42:09 2004 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/http.rb (HTTPResponse#to_ary): should return an object
|
||||
which does not respond to #to_ary. It causes infinite loop in
|
||||
puts. [ruby-core:02578]
|
||||
|
||||
Fri Mar 5 00:51:35 2004 Dave Thomas <dave@pragprog.com>
|
||||
|
||||
* lib/test/unit.rb: MOve RDoc documentation so that you can
|
||||
|
|
|
@ -1607,7 +1607,11 @@ module Net # :nodoc:
|
|||
#
|
||||
def to_ary
|
||||
warn "net/http.rb: warning: Net::HTTP v1.1 style assignment found at #{caller(1)[0]}; use `response = http.get(...)' instead." if $VERBOSE
|
||||
[self, body()]
|
||||
res = self.dup
|
||||
class << res
|
||||
undef to_ary
|
||||
end
|
||||
[res, res.body]
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Загрузка…
Ссылка в новой задаче