mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Let standard library handle charset parameter to MIME types
Fixes #10734
This commit is contained in:
parent
f1491c900e
commit
43ea2cd660
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue