Make mimetype check consistent across cases
This commit is contained in:
parent
f09e3966a7
commit
6ddd347b06
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue