<SamantazFox> yxhuvud: because of a bug in the stdlib, a response's body is not always decompressed, and rather than checking if it was properly done, I've made a patch in my code to send the Content-Encoding header, which disables auto decompression, and do that by myself.
<SamantazFox> but, Compress::Gzip::Reader and Compress::Deflate::Reader both takes IOs, not Strings
<yxhuvud> if gets to end has been called, it will be nothing more to decompress anyhow, so it wouldn't matter
<SamantazFox> my problem is that response.body is a String, and I have to feed it to Compress::Gzip::Reader
body_io is only set if you're using the block version of one of the request methods
From IRC (bridge bot)
<SamantazFox> So I though: let's use response.body_io instead, to directly have an IO