Skip to content

compression doesn't work with a streaming HTTP/2 upstream #14121

@SaveTheRbtz

Description

@SaveTheRbtz

Title: compression doesn't work with an HTTP/2 backend

Description:
If I understand existing code correctly then compression won't be applied to streaming responses returned by an HTTP/2-capable backend:

return StringUtil::caseFindToken(headers.getTransferEncodingValue(), ",",
Http::Headers::get().TransferEncodingValues.Chunked);

Repro steps:
Enable h2 to the backend, enable compressor, use streaming-capable upstream.

cc: @rojkov

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions