Merge pull request #65 from mordak/fix-debug
Fix debug output when Client.debug = true
This commit is contained in:
commit
804f1c724a
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