Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CRLF sequence #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix CRLF sequence #5

wants to merge 1 commit into from

Conversation

cookie-s
Copy link

@cookie-s cookie-s commented Nov 24, 2024

This PR fixes CRLF replacement.

References:

https://datatracker.ietf.org/doc/html/rfc7230#section-1.2

The following core rules are included by reference, as defined in
[RFC5234], Appendix B.1: ALPHA (letters), CR (carriage return), CRLF
(CR LF), CTL (controls), DIGIT (decimal 0-9), DQUOTE (double quote),
HEXDIG (hexadecimal 0-9/A-F/a-f), HTAB (horizontal tab), LF (line
feed), OCTET (any 8-bit sequence of data), SP (space), and VCHAR (any
visible [USASCII] character).

https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1

CR             =  %x0D
                                ; carriage return
CRLF           =  CR LF
                                ; Internet standard newline
:
:
LF             =  %x0A
                                ; linefeed

https://doc.rust-lang.org/reference/tokens.html#ascii-escapes

\n | Newline
\r | Carriage return

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