diff options
-rw-r--r-- | conn.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -24,6 +24,9 @@ func (c *Conn) ReadMessage() (msg Message, line string, err error) { return } + if raw[len(raw) - 1] == '\n' { + raw = raw[:len(raw) - 1] + } if raw[len(raw) - 1] == '\r' { raw = raw[:len(raw) - 1] } |