Merge pull request #907 from bigwhite/patch-1

Update 04.5.md
This commit is contained in:
astaxie
2017-10-31 05:27:44 -05:00
committed by GitHub

View File

@@ -124,6 +124,7 @@ func postFile(filename string, targetUrl string) error {
fmt.Println("error opening file")
return err
}
defer fh.Close()
//iocopy
_, err = io.Copy(fileWriter, fh)