mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +00:00
Other: Switch from liteapi to go-proton-api
This commit is contained in:
@ -26,9 +26,9 @@ import (
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/ProtonMail/gluon/rfc822"
|
||||
"github.com/ProtonMail/go-proton-api"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
"gitlab.protontech.ch/go/liteapi"
|
||||
"golang.org/x/net/html/charset"
|
||||
"golang.org/x/text/encoding"
|
||||
"golang.org/x/text/encoding/htmlindex"
|
||||
@ -36,7 +36,7 @@ import (
|
||||
|
||||
func init() {
|
||||
rfc822.ParseMediaType = ParseMediaType
|
||||
liteapi.CharsetReader = CharsetReader
|
||||
proton.CharsetReader = CharsetReader
|
||||
}
|
||||
|
||||
func CharsetReader(charset string, input io.Reader) (io.Reader, error) {
|
||||
|
||||
Reference in New Issue
Block a user