mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
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:
committed by
James Houlahan
parent
afc5307a23
commit
8e34b51c77
@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user