Zlib::Deflate.deflate problem

Hey all,

I’m using Zlib::Deflate.deflate to deflate a response from an HTTP
request to return back to the browser. The requests accept gzip,deflate
but when I return the deflated data the browser is not handling it
correctly…

any ideas where to look to debug?

thanks
Aaron

Aaron S. wrote:

Hey all,

I’m using Zlib::Deflate.deflate to deflate a response from an HTTP
request to return back to the browser. The requests accept gzip,deflate
but when I return the deflated data the browser is not handling it
correctly…

any ideas where to look to debug?

thanks
Aaron

little more info… I’m using WebRick, LightTPD, and Mongrel…

I was looking at mongrel source and see that I was missing the
Content-Encoding. But not sure where to set that for each server…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs