mirror of
https://github.com/openziti/zrok.git
synced 2024-11-21 23:53:19 +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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
defer f.Close()
|
||||||
_, err = io.Copy(f, stream)
|
_, err = io.Copy(f, stream)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user