Browse Source

fix for empty mime_type

PYADPT-55
Volker Birk 9 years ago
parent
commit
4390130df2
  1. 3
      src/message.cc

3
src/message.cc

@ -109,7 +109,8 @@ namespace pEp {
string Message::Blob::decode(string encoding)
{
if (encoding == "") {
if (string(_bl->mime_type) == "application/pEp")
string _mime_type = _bl->mime_type ? _bl->mime_type : "";
if (_mime_type == "application/pEp")
encoding = "pep-sync";
else
encoding = "ascii";

Loading…
Cancel
Save