mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
fix last byte inclusion
This commit is contained in:
parent
a32eccf5cb
commit
e94923ecb5
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ fn header_bytes(buffer: &[u8]) -> Result<&[u8], HeaderBytesError> {
|
|||
if *b == b'\r' {
|
||||
let n = i + 1;
|
||||
if buffer.get(n).is_some_and(|b| *b == b'\n') {
|
||||
return Ok(&buffer[..n]);
|
||||
return Ok(&buffer[..n + 1]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue