When printing debug info, slice from the start of the line to the CRLF
This commit is contained in:
parent
9031caf677
commit
a2df6fffd8
1 changed files with 1 additions and 1 deletions
|
|
@ -571,7 +571,7 @@ impl<T: Read + Write> Client<T> {
|
|||
if self.debug {
|
||||
// Remove CRLF
|
||||
let len = into.len();
|
||||
let line = &into[(len - read - 2)..(len - 2)];
|
||||
let line = &into[(len - read)..(len - 2)];
|
||||
print!("S: {}\n", String::from_utf8_lossy(line));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue