commands: Fix charsets in mimetypes - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit aa690c8e95ec75557503dbb4d8fcd34bc043be60
DIR parent 34f40044d7144dddcd613d60df8e24985158dd8c
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Wed, 15 Jun 2016 19:34:21 +0200
commands: Fix charsets in mimetypes
Fixes #2218
Diffstat:
M commands/server.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/commands/server.go b/commands/server.go
@@ -97,8 +97,8 @@ func init() {
serverCmd.Flags().Int("meminterval", 100, "interval to poll memory usage (requires --memstats)")
serverCmd.RunE = server
- mime.AddExtensionType(".json", "application/json; charset=utf8")
- mime.AddExtensionType(".css", "text/css; charset=utf8")
+ mime.AddExtensionType(".json", "application/json; charset=utf-8")
+ mime.AddExtensionType(".css", "text/css; charset=utf-8")
}