fix: mime type

This commit is contained in:
James Houlahan
2020-08-13 11:21:37 +02:00
parent 34df24ede3
commit 77c6ba381e
4 changed files with 23 additions and 20 deletions

View File

@ -102,12 +102,14 @@ func buildPackage(
if len(addressMap) == 0 {
return nil
}
pkg = &pmapi.MessagePackage{
Body: base64.StdEncoding.EncodeToString(bodyData),
Addresses: addressMap,
MIMEType: mimeType,
Type: sharedScheme,
}
if sharedScheme|pmapi.ClearPackage > 0 {
pkg.BodyKey.Key = bodyKey.GetBase64Key()
pkg.BodyKey.Algorithm = bodyKey.Algo