3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-11 06:29:29 +01:00

don't trim line endings in IRCStreamConn

Doesn't help if the line ends with regular \n only,
and the parser has to account for \r and \n anyway
This commit is contained in:
Shivaram Lingamneni 2020-06-23 03:19:08 -04:00
parent 28a0ec86b5
commit 8cadc7340a

View File

@ -76,7 +76,6 @@ func (cc *IRCStreamConn) ReadLine() (line []byte, err error) {
if isPrefix {
return nil, errReadQ
}
line = bytes.TrimSuffix(line, crlf)
if globalUtf8EnforcementSetting && !utf8.Valid(line) {
err = errInvalidUtf8
}