handle messages with \r\n

This commit is contained in:
orignal 2019-08-02 13:48:39 -04:00
parent a6558a61a7
commit db107602bd

View file

@ -239,6 +239,7 @@ namespace client
char * eol = (char *)memchr (m_Buffer, '\n', bytes_transferred);
if (eol)
{
if (eol > m_Buffer && eol[-1] == '\r') eol--;
*eol = 0;
char * separator = strchr (m_Buffer, ' ');
if (separator)