Trim first line of POP3 response to get rid of CR, if any.
This commit is contained in:
parent
feabba4470
commit
fd5f0c0707
@ -324,13 +324,13 @@ bool POP3Response::stripFirstLine
|
||||
|
||||
if (end != string::npos)
|
||||
{
|
||||
if (firstLine) *firstLine = buffer.substr(0, end);
|
||||
if (firstLine) *firstLine = utility::stringUtils::trim(buffer.substr(0, end));
|
||||
result = buffer.substr(end + 1);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (firstLine) *firstLine = buffer;
|
||||
if (firstLine) *firstLine = utility::stringUtils::trim(buffer);
|
||||
result = "";
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user