Skip to content

fix(http1): always remove content-length if transfer-encoding is sent - #4223

Merged
seanmonstar merged 1 commit into
masterfrom
sean/zvmpwqrpulvs
Oct 5, 2026
Merged

seanmonstar merged 1 commit into
masterfrom
sean/zvmpwqrpulvs

Conversation

@seanmonstar

Copy link
Copy Markdown
Member

If a request is sent with both transfer-encoding and content-length headers, we try to repair that for the user. (We try to help, but they are more responsible of course.)

In some case, if they included both, but the content-length header was otherwise invalid, we did not remove it. It was sent in its broken state. This changes it to simply always delete a content-length header if the user also asked to send a transfer-encoding header.

@seanmonstar
seanmonstar merged commit a5d7fd7 into master Oct 5, 2026
35 of 38 checks passed
@seanmonstar
seanmonstar deleted the sean/zvmpwqrpulvs branch October 5, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant