Skip to content

fix(mux-h2): Transfer-Encoding added to an H2 response without a body towards an H1 client #1776

Closed

Description

@FlorentinDUBOIS

When an H2 backend sends a response header section without END_STREAM and without content-length, Sōzu adds Transfer-Encoding: chunked to the head it writes to an H1 client and frames the response as chunked, including for a 1xx, a 204, a 304 and a response to HEAD.

These responses have no body by definition (RFC 9110 §6.4.1). A server MUST NOT send Transfer-Encoding in a 1xx or 204 response (RFC 9112 §6.1), and for a 304 or a response to HEAD the field misstates the framing.

Expected: no Transfer-Encoding and no chunked framing for these responses; a content-length sent by the backend is passed through as before (RFC 9110 §8.6).

Follows #1761.

Activity

  1. added 5 commits that reference this issue on Oct 1, 2026
    689bf83
    75c899c
    9754727
    cafeec5
    c0b0290
  2. added a commit that references this issue on Oct 2, 2026
    df7bade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions