Fixed request parser.
This commit is contained in:
parent
25cb048f4d
commit
d48f0c75b7
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue