From 7f84b08a6b85ede52c1beace4b444522548f4efc Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Sun, 7 Dec 2014 21:48:19 -0800 Subject: [PATCH] added correct content type for css --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index faef91e..bfd0315 100644 --- a/main.go +++ b/main.go @@ -46,6 +46,9 @@ func static(w http.ResponseWriter, req *http.Request) { http.Error(w, "file not found", http.StatusNotFound) return } else { + if req.URL.Path == "/math.css" { + w.Header().Set("Content-Type", "text/css") + } _, err := w.Write(content) if err != nil { http.Error(w, "problem writing response", http.StatusInternalServerError)