commands: Fix charsets in mimetypes
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 15 Jun 2016 17:34:21 +0000 (19:34 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 15 Jun 2016 17:34:21 +0000 (19:34 +0200)
Fixes #2218

commands/server.go

index 3564890f45be8f7332a5661955d53c63cfdb51e0..4318905b35024b501bcc77400c26ef8b3ac72987 100644 (file)
@@ -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")
 
 }