When printing debug info, slice from the start of the line to the CRLF

This commit is contained in:
todd 2018-02-24 16:06:37 -05:00
parent 9031caf677
commit a2df6fffd8

View file

@ -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));
}