mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 08:06:59 +00:00
fix: duplicate charset param
This commit is contained in:
@ -17,7 +17,9 @@
|
||||
|
||||
package parser
|
||||
|
||||
import "regexp"
|
||||
import (
|
||||
"regexp"
|
||||
)
|
||||
|
||||
type HandlerFunc func(*Part) error
|
||||
|
||||
@ -35,7 +37,7 @@ func (h *handler) matchType(p *Part) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
t, _, err := p.Header.ContentType()
|
||||
t, _, err := p.ContentType()
|
||||
if err != nil {
|
||||
t = ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user