summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--lib/net/http.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1e24276807..b6813db5e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Nov 19 14:45:18 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (to_ary): print more friendly warning message.
+
Wed Nov 19 14:32:08 2003 Minero Aoki <aamine@loveruby.net>
* lib/fileutils.rb (fu_same?): add djgpp and wince.
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