Skip to content

Commit

Permalink
Let standard library handle charset parameter to MIME types
Browse files Browse the repository at this point in the history
Fixes #10734
  • Loading branch information
datosh authored Feb 16, 2024
1 parent f1491c9 commit 43ea2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugolib/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 43ea2cd

Please sign in to comment.