Skip to content

Commit 4e2330f

Browse files
authored
Merge pull request astaxie#907 from bigwhite/patch-1
Update 04.5.md
2 parents 01533e0 + dcd2635 commit 4e2330f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

en/04.5.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ func postFile(filename string, targetUrl string) error {
124124
fmt.Println("error opening file")
125125
return err
126126
}
127+
defer fh.Close()
127128

128129
//iocopy
129130
_, err = io.Copy(fileWriter, fh)

0 commit comments

Comments
 (0)