mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03: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
|
|
@ -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…
Add table
Add a link
Reference in a new issue