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 (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);
|
result = buffer.substr(end + 1);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (firstLine) *firstLine = buffer;
|
if (firstLine) *firstLine = utility::stringUtils::trim(buffer);
|
||||||
result = "";
|
result = "";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user