Zlib::Deflate.deflate problem


#1

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


#2

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…