From 41a5da7f5654d8b87e5e5ee30eabf302f7b66ad7 Mon Sep 17 00:00:00 2001 From: handlerug Date: Wed, 23 Jun 2021 22:35:33 +0700 Subject: [PATCH] Fix a typo -> serve CSS with proper Content-Type --- web/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/web.go b/web/web.go index a3a5566..6d8125a 100644 --- a/web/web.go +++ b/web/web.go @@ -42,7 +42,7 @@ func httpErr(w http.ResponseWriter, status int, name, title, errMsg string) { func handlerStyle(w http.ResponseWriter, rq *http.Request) { util.PrepareRq(rq) - w.Header().Set("Content-Type", mime.TypeByExtension("css")) + w.Header().Set("Content-Type", mime.TypeByExtension(".css")) for _, name := range stylesheets { file, err := static.FS.Open(name) if err != nil {