GODT-1940: Fix message encryption

Update liteapi to v0.36.0 to include message encryption fix and fix
compile errors related to update.
This commit is contained in:
Leander Beernaert
2022-10-25 14:57:05 +02:00
committed by James Houlahan
parent afc5307a23
commit 8e34b51c77
4 changed files with 10 additions and 12 deletions

View File

@ -357,11 +357,9 @@ func writeMultipartEncryptedRFC822(header message.Header, body []byte) ([]byte,
return nil, err
}
// If parsed header is empty then either it is malformed or it is missing.
// Anyway message could not be considered multipart/mixed anymore since there will be no boundary.
if bodyHeader.Len() == 0 {
header.Del("Content-Type")
}
// Remove old content type header as it is non-standard. Ensure that messages
// without content type header entries don't become invalid.
header.Del("Content-Type")
entFields := bodyHeader.Fields()