Skip to content

Commit

Permalink
fix imroc#9
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Jun 4, 2017
1 parent 02374e7 commit 972c11d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resp.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func (r *Resp) ToXML(v interface{}) error {
// ToFile download the response body to file
func (r *Resp) ToFile(name string) error {
file, err := os.Create(name)
defer file.Close()
if err != nil {
return err
}
Expand Down

0 comments on commit 972c11d

Please sign in to comment.