浏览代码

fix #386

fix #386
walkor 7 年之前
父节点
当前提交
9893a3b26e
共有 1 个文件被更改,包括 1 次插入1 次删除
  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");
     }
 }