Browse Source

fix #386

fix #386
walkor 7 years ago
parent
commit
9893a3b26e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Protocols/Text.php

+ 1 - 1
Protocols/Text.php

@@ -65,6 +65,6 @@ class Text
     public static function decode($buffer)
     {
         // Remove "\n"
-        return trim($buffer);
+        return rtrim($buffer, "\r\n");
     }
 }