diff --git a/lib/net/http.rb b/lib/net/http.rb index 03a65ab..0805ec6 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -2697,6 +2697,11 @@ module Net #:nodoc: "#<#{self.class} #{@code} #{@message} readbody=#{@read}>" end + # Deprecated; defined here to avoid implicit array conversion bugs + def to_ary + raise "Net::HTTP v1.1 style assignment is deprecated; use `response = http.get(...)' instead." + end + # # response <-> exception relationship #