mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Let standard library handle charset parameter to MIME types
Fixes #10734
This commit is contained in:
@@ -397,7 +397,7 @@ func (w *whatChanged) Changes() []identity.Identity {
|
|||||||
func (s *Site) RegisterMediaTypes() {
|
func (s *Site) RegisterMediaTypes() {
|
||||||
for _, mt := range s.conf.MediaTypes.Config {
|
for _, mt := range s.conf.MediaTypes.Config {
|
||||||
for _, suffix := range mt.Suffixes() {
|
for _, suffix := range mt.Suffixes() {
|
||||||
_ = mime.AddExtensionType(mt.Delimiter+suffix, mt.Type+"; charset=utf-8")
|
_ = mime.AddExtensionType(mt.Delimiter+suffix, mt.Type)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user