mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 14:57:26 +08:00
Bugfix OpenPGP.js sign HTML failed #600
This commit is contained in:
parent
d993b213a7
commit
d416ab3642
2 changed files with 2 additions and 2 deletions
|
@ -161,7 +161,7 @@ export const
|
|||
*/
|
||||
const body = message.body;
|
||||
body.textContent = '';
|
||||
let result = await mailvelope.createDisplayContainer(
|
||||
result = await mailvelope.createDisplayContainer(
|
||||
'#'+body.id,
|
||||
armoredText,
|
||||
this.mailvelopeKeyring,
|
||||
|
|
|
@ -169,7 +169,7 @@ class MimePart {
|
|||
const hasSub = this.children.length,
|
||||
boundary = this.boundary || (this.boundary = 'part' + Jua.randomId()),
|
||||
headers = this.headers;
|
||||
if (hasSub) {
|
||||
if (hasSub && !headers['Content-Type'].includes(boundary)) {
|
||||
headers['Content-Type'] += `; boundary="${boundary}"`;
|
||||
}
|
||||
let result = Object.entries(headers).map(([key, value]) => `${key}: ${value}`).join('\r\n') + '\r\n';
|
||||
|
|
Loading…
Reference in a new issue