Project

General

Profile

Actions

Bug #7924

closed

r39232 以降 net/http で正しく reponse を取得出来ないケースがある

Added by hsbt (Hiroshi SHIBATA) about 11 years ago. Updated about 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1]
Backport:
[ruby-dev:47075]

Description

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 するケースの考慮漏れのような気がします。


Files

net.http.bug7924.patch (1.07 KB) net.http.bug7924.patch drbrain (Eric Hodel), 02/24/2013 08:05 AM

Related issues 1 (0 open1 closed)

Related to Backport200 - Backport #7831: Net::HTTP does not allow users to handle Content-Encoding in responses like 1.xCloseddrbrain (Eric Hodel)02/12/2013Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0