mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-15 21:04:46 +01:00
fix(zip): close file after copying to zip (#388)
This commit is contained in:
parent
cddbcfc6d1
commit
d37497cd0e
1 changed files with 1 additions and 0 deletions
|
|
@ -457,6 +457,7 @@ func FileDownloader(ctx App, res http.ResponseWriter, req *http.Request) {
|
|||
io.Copy(zipFile, strings.NewReader(""))
|
||||
return err
|
||||
}
|
||||
file.Close()
|
||||
return nil
|
||||
}
|
||||
// Process Folder
|
||||
|
|
|
|||
Loading…
Reference in a new issue