From c02a97aa6810e91e2ceb341a43d4dc37c38c3364 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 19 Oct 2019 15:19:04 -0400 Subject: [PATCH] close file --- web.go | 1 + 1 file changed, 1 insertion(+) diff --git a/web.go b/web.go index 809081f..282de4b 100644 --- a/web.go +++ b/web.go @@ -1565,6 +1565,7 @@ func servecss(w http.ResponseWriter, r *http.Request) { http.NotFound(w, r) return } + defer fd.Close() w.Header().Set("Cache-Control", "max-age=0") w.Header().Set("Content-Type", "text/css; charset=utf-8") err = css.Filter(fd, w)