From: Ian Macdonald Date: 2004-03-05T08:53:38+09:00 Subject: problem with Net::HTTP in 1.8.1 Hello, The following code seems to cause an infinite loop: #!/usr/bin/ruby -w require 'net/http' http = Net::HTTP.start('www.google.com', 80) response = http.get('/') puts response.header This causes the following bogus message to be printed indefinitely: net/http.rb: warning: Net::HTTP v1.1 style assignment found at ./foo:8:in `puts'; use `response = http.get(...)' instead. Something seems amiss with #header. Also, there's a typo in https.rb: [ianmacd@jiskefet]$ grep -n alrady /usr/lib/ruby/1.8/net/https.rb 158: raise ProtocolError, "connection is alrady set up" ^^^^^^ [ianmacd@jiskefet]$ ruby -v ruby 1.8.1 (2004-03-01) [i686-linux-gnu] Ian -- Ian Macdonald | COBOL is for morons. -- E.W. Dijkstra System Administrator | ian@caliban.org | http://www.caliban.org | |