diff --git a/src/request/parser.rs b/src/request/parser.rs index 2d528ca..d96eef7 100644 --- a/src/request/parser.rs +++ b/src/request/parser.rs @@ -12,6 +12,7 @@ impl Request { 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); }