From 39a97bf0035bd2059abe39bf6a60a750261e49f5 Mon Sep 17 00:00:00 2001 From: aamine Date: Wed, 19 Nov 2003 05:45:44 +0000 Subject: * lib/net/http.rb (to_ary): print more friendly warning message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/net') diff --git a/lib/net/http.rb b/lib/net/http.rb index ccabbff8e3..bf74172bf5 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1618,7 +1618,7 @@ module Net # :nodoc: # response, body = Net::HTTP.get(....) # def to_ary - warn "net/http: warning: old style assignment found at #{caller(1)[0]}" if $VERBOSE + 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()] end -- cgit v1.2.3