In Compress:processBodyData, the logic that follows uses response.headersSended / response.headers to decide whether it can still add headers. The Response implementation uses _headersSended and _headers, so this check will be wrong and can lead to trying to add Content-Encoding after headers are already sent (assertion failure), especially for streaming responses.
In
Compress:processBodyData, the logic that follows usesresponse.headersSended/response.headersto decide whether it can still add headers. The Response implementation uses_headersSendedand_headers, so this check will be wrong and can lead to trying to addContent-Encodingafter headers are already sent (assertion failure), especially for streaming responses.