added correct content type for css

This commit is contained in:
Stephen McQuay 2014-12-07 21:48:19 -08:00
parent e372a4e04e
commit 7f84b08a6b

View File

@ -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)