From 43ea2cd660a9052f45729e1a1d7dbc68c1d08440 Mon Sep 17 00:00:00 2001 From: Fabian Kammel Date: Fri, 16 Feb 2024 18:24:25 +0100 Subject: [PATCH] Let standard library handle charset parameter to MIME types Fixes #10734 --- hugolib/site.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugolib/site.go b/hugolib/site.go index 312f6b97f..8ae09dd0f 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -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) } } }