Close response body
This commit is contained in:
parent
48370aae6e
commit
485d2d86be
@ -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