From: Chad Fowler Date: 2003-06-06T03:45:16+09:00 Subject: Re: Ruby 1.8.0 net/http bug On Fri, 6 Jun 2003, Dave Thomas wrote: > Hal E. Fulton wrote: > > >> > >>resp, data = h.get('/index.html', nil) > >> > >>try adding this line: > >> > >>data = resp.data if data.nil? > >> > >>That should make your code compatible with both versions of net/http. > > > > > > Ah, that's a good idea. > > Even better perhaps would be > > class Net::HTTPOK > def to_ary > return self, body > end > end > > That way all original code should still work unchanged. > > Is this worth an RCR? > > I was just typing up the same code when I saw your mail come in. I believe it *is* worth an RCR. Chad