# File lib/mongrel/handlers.rb, line 284 def process(request, response) accepts = request.params[HTTP_ACCEPT_ENCODING] # only process if they support compression if @always_deflate or (accepts and (accepts.include? "deflate" and not response.body_sent)) response.header["Content-Encoding"] = "deflate" response.body = deflate(response.body) end end