diff options
author | Frédéric Guillot <fred@miniflux.net> | 2017-11-29 21:41:16 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2017-11-29 21:41:16 -0800 |
commit | 7cecdbb8561e03868392dde12a2c763e782c948b (patch) | |
tree | 1df2984275e6d9b9bdd5b2145f9a94863407ad99 | |
parent | 92dff28f526cbd626362c12f8e16fa59e72983c5 (diff) |
Add charset to CSS and JS mime type
-rw-r--r-- | server/ui/controller/static.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/ui/controller/static.go b/server/ui/controller/static.go index fba408c..ae46815 100644 --- a/server/ui/controller/static.go +++ b/server/ui/controller/static.go @@ -24,12 +24,12 @@ func (c *Controller) Stylesheet(ctx *core.Context, request *core.Request, respon etag += static.StylesheetsChecksums[stylesheet] } - response.Cache("text/css", etag, []byte(body), 48*time.Hour) + response.Cache("text/css; charset=utf-8", etag, []byte(body), 48*time.Hour) } // Javascript renders application client side code. func (c *Controller) Javascript(ctx *core.Context, request *core.Request, response *core.Response) { - response.Cache("text/javascript", static.JavascriptChecksums["app"], []byte(static.Javascript["app"]), 48*time.Hour) + response.Cache("text/javascript; charset=utf-8", static.JavascriptChecksums["app"], []byte(static.Javascript["app"]), 48*time.Hour) } // Favicon renders the application favicon. |