fix: trim \r from message
mime type couldn't be parsed because of this
This commit is contained in:
parent
2d3a19c60d
commit
16fc740397
1 changed files with 3 additions and 0 deletions
|
@ -79,6 +79,9 @@ impl Client {
|
|||
message.push(buf[0].into());
|
||||
}
|
||||
}
|
||||
if message.last().is_some_and(|c| c == &b'\r') {
|
||||
message.pop();
|
||||
}
|
||||
let message = String::from_utf8(message)?;
|
||||
Ok(Response::new(status, message, stream))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue