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

@giorka giorka commented May 19, 2026

Copy link
Copy Markdown

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.
@levlam

levlam commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

The pull request looks correct, but HTTP header line folding is obsolete and deprecated for the last 12 years as stated in the RFC 7230. Therefore, there are no reasons to support it.

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.

3 participants