mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-31 06:35:03 +01:00
fixed GH#155: MailOutputStream mangles consecutive newline sequences
This commit is contained in:
parent
6f863fee09
commit
7264336171
@ -176,7 +176,9 @@ int MailStreamBuf::writeToDevice(char c)
|
||||
}
|
||||
else if (_state == ST_CR_LF_DOT)
|
||||
{
|
||||
_pOstr->write("\r\n..", 4);
|
||||
// buffer contains one or more CR-LF pairs
|
||||
_pOstr->write(_buffer.data(), (std::streamsize) _buffer.length());
|
||||
_pOstr->write("..", 2);
|
||||
_state = ST_DATA;
|
||||
_buffer.clear();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user