From: Eric Wong <normalperson@...> Date: 2012-06-15T08:18:33+09:00 Subject: [ruby-core:45656] Re: [ruby-trunk - Feature #6492] Inflate all HTTP Content-Encoding: deflate, gzip, x-gzip responses by default "naruse (Yui NARUSE)" <naruse@airemix.jp> wrote: > How about adding a new attribute which limits the size of reading body? Maybe. I'm not familiar with zlib internals, but does it need to allocate that memory internally even if it's not returned to the callers? Perhaps adding an attribute to toggle transparent inflate and documenting it with a warning about possible memory usage is the way to go.