-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
Description
Describe the bug
With #49894 Transfer-Encoding is already stripped. But this seams not to be sufficient when processing Response or RestResponse
Header | RFC 9112 Reference | Reason to Strip |
---|---|---|
Connection |
§7.6 | Declares hop-by-hop headers; forwarding can break compliance. |
Keep-Alive |
§7.6 | Connection duration management; hop-specific. |
Proxy-Authenticate |
§7.6 | Proxy-only auth; not end-to-end. |
Proxy-Authorization |
§7.6 | Proxy-only auth; not end-to-end. |
TE |
§7.6 | Hop-specific transfer encoding negotiation. |
Trailer |
§7.6 | Only relevant for chunked transfer; hop-specific. |
Transfer-Encoding |
§6.1 | Must not be duplicated; runtime will handle chunked encoding. |
Upgrade |
§7.6 | Protocol upgrade only affects current connection. |
Content-Length |
§6.1, §6.3 | If Transfer-Encoding is present, must be removed to prevent conflicts. |
At least Content-Length should also be removed if Transfer-Encoding is removed.
RFC 9112, Section 6.1 – Transfer-Encoding:
A sender MUST NOT send a Content-Length header field in any message that contains a Transfer-Encoding header field.
Expected behavior
These headers should not be forwarded from a Response.
Actual behavior
With #49894 Transfer-Encoding is already stripped.