Skip to content

Commit 75890b7

Browse files
authored
Further clarify the CRLF handling in "Validation of Header Names and Values"
1 parent 2722d70 commit 75890b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

accepted/PSR-7-http-message-meta.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,8 @@ following characters:
683683
- `\n` (0x0A)
684684

685685
If compatibility with older systems is desired then the sequence `\r\n` (0x0D0A)
686-
within a header value may be accepted if and only if it is preceded by either
687-
SPACE (0x20) or `\t` (0x09).
686+
within a header value MAY be accepted if and only if it is immediately preceded by either
687+
SPACE (0x20) or `\t` (0x09). The full sequence SHOULD then internally be normalized to a single SPACE (0x20).
688688

689689
Further characters or sequences in header values should be rejected according
690690
to the HTTP specification.

0 commit comments

Comments
 (0)