diff options
author | y0ast <joost@joo.st> | 2020-09-06 15:35:28 +0100 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2020-09-07 07:27:15 +0200 |
commit | 6ddd347b06e840f064106a8181ae570e2d33d395 (patch) | |
tree | ea84c482f2bdfb7399257f827b2b35f9cd2c8fc6 | |
parent | f09e3966a7882fce0170e61011208fb9c51a6de4 (diff) | |
download | aerc-6ddd347b06e840f064106a8181ae570e2d33d395.tar.gz |
Make mimetype check consistent across cases
-rw-r--r-- | widgets/msgviewer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index 587959b..6c69577 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 { |