1
0
mirror of synced 2024-11-25 14:26:09 +03:00

Close response body

This commit is contained in:
Pranas Kiziela 2019-11-15 16:01:19 +02:00
parent 48370aae6e
commit 485d2d86be

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)
} }