close file

This commit is contained in:
Ted Unangst 2019-10-19 15:19:04 -04:00
parent 341b03b8f0
commit c02a97aa68
1 changed files with 1 additions and 0 deletions

1
web.go
View File

@ -1565,6 +1565,7 @@ func servecss(w http.ResponseWriter, r *http.Request) {
http.NotFound(w, r) http.NotFound(w, r)
return return
} }
defer fd.Close()
w.Header().Set("Cache-Control", "max-age=0") w.Header().Set("Cache-Control", "max-age=0")
w.Header().Set("Content-Type", "text/css; charset=utf-8") w.Header().Set("Content-Type", "text/css; charset=utf-8")
err = css.Filter(fd, w) err = css.Filter(fd, w)