Skip to content

Support streaming with http2 adapter #4041

@faradaytrs

Description

@faradaytrs

What version of Hono are you using?

4.7.5

What runtime/platform is your app running on? (with version if possible)

Node 22

What steps can reproduce the bug?

If you use streaming in hono, it sets Transfer-Encoding: chucked.
It works well with http1.1, but fails with h2c because this header is not supported, h2 uses different streaming mechanisms.
So we get an error TypeError [ERR_HTTP2_INVALID_CONNECTION_HEADERS]: HTTP/1 Connection specific headers are forbidden: "transfer-encoding"

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions