1
0
mirror of synced 2024-11-29 00:26:12 +03:00

Merge pull request #71 from pranas/feature/close-body

Close response body
This commit is contained in:
Harrison Shoebridge 2019-11-30 15:53:34 +11:00 committed by GitHub
commit 14c1f126e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,6 +243,7 @@ func (r *Response) AttachmentData(dataType AttachmentType, filename string, file
if err != nil { if err != nil {
return err return err
} }
defer resp.Body.Close()
return checkFacebookError(resp.Body) return checkFacebookError(resp.Body)
} }