Skip to content

Remove CRLF from folded HTTP header values#3654

Open
giorka wants to merge 1 commit into
tdlib:masterfrom
giorka:patch-3
Open

Remove CRLF from folded HTTP header values#3654
giorka wants to merge 1 commit into
tdlib:masterfrom
giorka:patch-3

Conversation

@giorka
Copy link
Copy Markdown

@giorka giorka commented May 19, 2026

There is already a TODO to remove "\r\n" from folded header values. Normalize folded HTTP headers in-place by replacing CRLF + whitespace sequences with a single space before processing the header value.

Reference: RFC 7230

Refactor header value processing to remove CRLF sequences and trim whitespace.
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.

2 participants