aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authory0ast <joost@joo.st>2020-09-06 15:35:28 +0100
committerReto Brunner <reto@labrat.space>2020-09-07 07:27:15 +0200
commit6ddd347b06e840f064106a8181ae570e2d33d395 (patch)
treeea84c482f2bdfb7399257f827b2b35f9cd2c8fc6
parentf09e3966a7882fce0170e61011208fb9c51a6de4 (diff)
downloadaerc-6ddd347b06e840f064106a8181ae570e2d33d395.tar.gz
Make mimetype check consistent across cases
-rw-r--r--widgets/msgviewer.go2
1 files changed, 1 insertions, 1 deletions
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 {