Closed tmaier closed 10 years ago
@tmaier You are right. Current implementation is broken.
Gzip content handling from ruby 1.9.3 to 2.1.1 is slightly different and it is still needed to decode content on the fly.
Some reference here: http://stackoverflow.com/questions/13397119/ruby-nethttp-not-decoding-gzip
Let me know what you think about https://github.com/taganaka/polipus/issues/21
At
HTTP#fetch_pages
you try to decode the gziped content of a page.https://github.com/taganaka/polipus/blob/master/lib/polipus/http.rb#L34-L39
but
body
is not used anywhere.:body
should get it's value.In general, I'm not sure it this necessary at all, as http://www.ruby-doc.org/stdlib-2.1.1/libdoc/net/http/rdoc/Net/HTTP.html#class-Net::HTTP-label-Compression states this is done by Net::HTTP automatically