style fix

This commit is contained in:
Guenter Obiltschnig 2014-03-09 15:53:04 +01:00
parent d3d406dba8
commit f29e5786cf
2 changed files with 2 additions and 2 deletions

View File

@ -102,9 +102,8 @@ namespace
Poco::StreamCopier::copyToString(stream, tmp);
if (_pMsg)
{
MailMessage::ContentTransferEncoding cte = MailMessage::ENCODING_7BIT;
if(header.has(MailMessage::HEADER_CONTENT_TRANSFER_ENCODING))
if (header.has(MailMessage::HEADER_CONTENT_TRANSFER_ENCODING))
{
std::string enc = header[MailMessage::HEADER_CONTENT_TRANSFER_ENCODING];
if (enc == MailMessage::CTE_8BIT)

View File

@ -450,6 +450,7 @@ void MailMessageTest::testReadMultiPart()
assert (handler.disp()[1] == "attachment; filename=sample.dat");
}
void MailMessageTest::testReadMultiPartDefaultTransferEncoding()
{
std::istringstream istr(