From: "drbrain (Eric Hodel)" Date: 2013-02-24T08:05:47+09:00 Subject: [ruby-dev:47080] [ruby-trunk - Bug #7924] r39232 以降 net/http で正しく reponse を取得出来ないケースがある Issue #7924 has been updated by drbrain (Eric Hodel). File net.http.bug7924.patch added The attached patch removes the duplicated header setting in Net::HTTP#get and adds a test. I double checked net/http* for use of accept-encoding or HAVE_ZLIB, now it only exists in Net::HTTPGenericRequest and Net::HTTPResponse. ---------------------------------------- Bug #7924: r39232 以降 net/http で正しく reponse を取得出来ないケースがある https://bugs.ruby-lang.org/issues/7924#change-36844 Author: hsbt (Hiroshi SHIBATA) Status: Open Priority: Immediate Assignee: drbrain (Eric Hodel) Category: core Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1] r39232 以降、tDiary の以下のようなコードが動かなくなりました。 https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185 単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた 変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。 response を inflate するケースの考慮漏れのような気がします。 -- http://bugs.ruby-lang.org/