mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-13 14:46:58 -04:00
Let standard library handle charset parameter to MIME types
Fixes #10734
This commit is contained in:
parent
f1491c900e
commit
43ea2cd660
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user