Skip to content

Commit 25638dd

Browse files
committed
Allow for \n\n (or LFLF) as end of headers delimiter
1 parent d468727 commit 25638dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/client/decode.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ where
4444
if idx >= 3 && &buf[idx - 3..=idx] == [CR, LF, CR, LF] {
4545
break;
4646
}
47+
if idx >= 1 && &buf[idx - 1..=idx] == [LF, LF] {
48+
break;
49+
}
4750
}
4851

4952
// Convert our header buf into an httparse instance, and validate.

0 commit comments

Comments
 (0)