Fixed request parser.

This commit is contained in:
Mauro D 2023-01-17 14:00:12 +00:00
parent 25cb048f4d
commit d48f0c75b7

View file

@ -12,6 +12,7 @@ impl Request<String> {
let mut parser = Rfc5321Parser::new(bytes);
let command = parser.hashed_value()?;
if !parser.stop_char.is_ascii_whitespace() {
parser.seek_lf()?;
return Err(Error::UnknownCommand);
}