In finish_http_response(), don't add an Content-Encoding header if compression failed.