Transfer-Encoding Header: Remove mention of trailers value#40376
Merged
hamishwillee merged 2 commits intomdn:mainfrom Jul 16, 2025
Merged
Transfer-Encoding Header: Remove mention of trailers value#40376hamishwillee merged 2 commits intomdn:mainfrom
trailers value#40376hamishwillee merged 2 commits intomdn:mainfrom
Conversation
`trailers` is only valid for the `TE` header. `Transfer-Encoding: trailers` is not a thing. There already is a (correct) note on https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/TE, so this just needs to be removed. The PR that introduced this (mdn#22032) correctly cites the RFC for `TE`, but then mixes up TE and Transfer-Encoding.
| - {{HTTPHeader("Accept-Encoding")}} | ||
| - {{HTTPHeader("Content-Encoding")}} | ||
| - {{HTTPHeader("Content-Length")}} | ||
| - Header fields that regulate the use of trailers: {{HTTPHeader("TE")}} (requests) and {{HTTPHeader("Trailer")}} (responses). |
Collaborator
There was a problem hiding this comment.
Not relevant if trailers is not allowed.
hamishwillee
approved these changes
Jul 16, 2025
Contributor
|
Preview URLs Flaws (3)URL:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The page for
Transfer-Encodingcurrently incorrectly mentions a permissibletrailersvalue for HTTP/2. Buttrailersis only valid for theTEheader.Transfer-Encoding: trailersis not a thing. There already is a (correct) note on https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/TE.The PR that introduced this (#22032) correctly cites the RFC for
TE, but then mixes up TE and Transfer-Encoding.Additional details
From https://datatracker.ietf.org/doc/html/rfc9113#section-8.2.2 (emphasis mine):
Related issues and pull requests
Relates to #22032