router: close body once finished

This commit is contained in:
Matthew Penner
2023-01-24 12:33:42 -07:00
parent 1bc77dc969
commit 14eea3b1e4
2 changed files with 2 additions and 1 deletions

View File

@@ -183,7 +183,7 @@ func (fs *Filesystem) DirectorySize(dir string) (int64, error) {
}
if !e.IsDir() {
syscall.Lstat(p, &st)
_ = syscall.Lstat(p, &st)
atomic.AddInt64(&size, st.Size)
}