Make mimetype check consistent across cases

This commit is contained in:
y0ast 2020-09-06 15:35:28 +01:00 committed by Reto Brunner
parent f09e3966a7
commit 6ddd347b06
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ func (pv *PartViewer) attemptCopy() {
}
go func() {
pv.writeMailHeaders()
if pv.part.MIMEType == "text" {
if strings.EqualFold(pv.part.MIMEType, "text") {
// if the content is plain we can strip ansi control chars
pv.copySourceToSinkStripAnsi()
} else {