Let standard library handle charset parameter to MIME types

Fixes #10734
This commit is contained in:
Fabian Kammel 2024-02-16 18:24:25 +01:00 committed by GitHub
parent f1491c900e
commit 43ea2cd660
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -397,7 +397,7 @@ func (w *whatChanged) Changes() []identity.Identity {
func (s *Site) RegisterMediaTypes() {
for _, mt := range s.conf.MediaTypes.Config {
for _, suffix := range mt.Suffixes() {
_ = mime.AddExtensionType(mt.Delimiter+suffix, mt.Type+"; charset=utf-8")
_ = mime.AddExtensionType(mt.Delimiter+suffix, mt.Type)
}
}
}