From: Minero Aoki Date: 2003-06-22T11:59:15+09:00 Subject: Re: Trying to use Net::HTTP sample program from "The Ruby Way" Hi, In mail "Re: Trying to use Net::HTTP sample program from "The Ruby Way"" Ludwigi Beethoven wrote: > I upgraded to 1.8.0 and I am still getting the same > error. I am not sure what's going wrong with what > appears to be a simple program. > ruby -v returns: ruby 1.8.0 (2003, 05, 26)[i386-mswin32] The modification is introduced on 2003-06-06... OK, try attaching patch. Regards Minero Aoki --- http.rb 14 May 2003 03:20:16 -0000 1.83 +++ http.rb 6 Jun 2003 07:05:52 -0000 1.84 @@ -1598,10 +1598,20 @@ module Net attr_reader :http_version attr_reader :code attr_reader :message - alias msg message + alias msg message # for backward compatibility def inspect "#<#{self.class} #{@code} readbody=#{@read}>" + end + + # For backward compatibility. + # To allow Net::HTTP 1.1 style assignment + # e.g. + # response, body = Net::HTTP.get(....) + # + def to_ary + warn "net/http: warning: old style assignment found at #{caller(1)[0]}" if $VERBOSE + [self, body()] end #