summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Kammel <datosh18@gmail.com>2024-02-16 18:24:25 +0100
committerGitHub <noreply@github.com>2024-02-16 18:24:25 +0100
commit43ea2cd660a9052f45729e1a1d7dbc68c1d08440 (patch)
treec4e5ad4067185bb2c82e65fbb09b05389e6b8dd4
parentf1491c900e83adbf009a0db8497791aeb9bd6357 (diff)
Let standard library handle charset parameter to MIME types
Fixes #10734
-rw-r--r--hugolib/site.go2
1 files changed, 1 insertions, 1 deletions
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)
}
}
}