Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
NickOvt committed Mar 20, 2024
1 parent a11ebd2 commit 8e6899e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/api/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -1662,9 +1662,9 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler, setti
} else if (attachmentData.transferEncoding === 'quoted-printable') {
attachmentStream.pipe(new libqp.Decoder()).pipe(res);
} else {
if (!attachmentCharset.toLowerCase().includes('utf') && result.value.sendAsString) {
attachmentStream.pipe(iconv.decodeStream(attachmentCharset));
}
// if (!attachmentCharset.toLowerCase().includes('utf') && result.value.sendAsString) {
attachmentStream.pipe(iconv.decodeStream(attachmentCharset));
// }
attachmentStream.pipe(res);
}
})
Expand Down

0 comments on commit 8e6899e

Please sign in to comment.