Merge pull request #71 from pranas/feature/close-body
Close response body
This commit is contained in:
commit
14c1f126e4
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user