Skip to content

bug in compression plugin #158

@Tieske

Description

@Tieske

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions