mirror of
https://github.com/openziti/zrok.git
synced 2024-11-21 15:43:22 +01:00
fix: close file
Signed-off-by: guangwu <guoguangwug@gmail.com>
This commit is contained in:
parent
7a460179ea
commit
a99b50ecfa
@ -124,6 +124,7 @@ func (t *FilesystemTarget) WriteStream(path string, stream io.Reader, mode os.Fi
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer f.Close()
|
||||
_, err = io.Copy(f, stream)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user