From 6ddd347b06e840f064106a8181ae570e2d33d395 Mon Sep 17 00:00:00 2001 From: y0ast Date: Sun, 6 Sep 2020 15:35:28 +0100 Subject: Make mimetype check consistent across cases --- widgets/msgviewer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets') diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index 587959b9..6c695771 100644 --- a/widgets/msgviewer.go +++ b/widgets/msgviewer.go @@ -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 { -- cgit