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() {
|
go func() {
|
||||||
pv.writeMailHeaders()
|
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
|
// if the content is plain we can strip ansi control chars
|
||||||
pv.copySourceToSinkStripAnsi()
|
pv.copySourceToSinkStripAnsi()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue