1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-01-07 18:30:26 +00:00

Fix a typo -> serve CSS with proper Content-Type

This commit is contained in:
handlerug 2021-06-23 22:35:33 +07:00
parent ace1506bcc
commit 41a5da7f56
No known key found for this signature in database
GPG Key ID: 38009F0605051491

View File

@ -42,7 +42,7 @@ func httpErr(w http.ResponseWriter, status int, name, title, errMsg string) {
func handlerStyle(w http.ResponseWriter, rq *http.Request) { func handlerStyle(w http.ResponseWriter, rq *http.Request) {
util.PrepareRq(rq) util.PrepareRq(rq)
w.Header().Set("Content-Type", mime.TypeByExtension("css")) w.Header().Set("Content-Type", mime.TypeByExtension(".css"))
for _, name := range stylesheets { for _, name := range stylesheets {
file, err := static.FS.Open(name) file, err := static.FS.Open(name)
if err != nil { if err != nil {