Skip to content

http1 client keeps content-length when transfer-encoding is also present #4263

Closed

Description

@xia-chao

hyper 1.12 http1 client returns both headers for a response that carries
transfer-encoding: chunked and content-length: 100000, with a 5-byte body.

the server-side decoder removes content-length when transfer-encoding is
present; the client-side decoder does not. should the client do the same, or
is this intentionally left to the caller?

Activity

  1. added
    C-bug
    A-client
    E-easy
    on Nov 13, 2026
  2. added a commit that references this issue on Nov 13, 2026
    378f847
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

    A-clientC-bugE-easy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions