mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01:00
handle messages with \r\n
This commit is contained in:
parent
a6558a61a7
commit
db107602bd
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue