diff options
Diffstat (limited to 'cmd/web/handlers/fs.go')
| -rw-r--r-- | cmd/web/handlers/fs.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/web/handlers/fs.go b/cmd/web/handlers/fs.go index 8a10409..629a7e1 100644 --- a/cmd/web/handlers/fs.go +++ b/cmd/web/handlers/fs.go @@ -40,6 +40,7 @@ func (ctx *fsContext) get(w http.ResponseWriter, r *http.Request) { http.Error(w, "Internal Server Error", 500) return } + defer root.Close() file, err := root.ReadFile(name) if err != nil { |
