close file
This commit is contained in:
parent
341b03b8f0
commit
c02a97aa68
1
web.go
1
web.go
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue