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

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 {