Skip to content

Commit 43da9f9

Browse files
authored
Close the response body in SendMailV31() (#112)
This fixes a missing call to Body.Close() on the HTTP response in Client.SendMailV31()
1 parent 0a3f667 commit 43da9f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mailjet_client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ func (c *Client) SendMailV31(data *MessagesV31, options ...RequestOptions) (*Res
259259
if err != nil {
260260
return nil, err
261261
}
262+
defer r.Body.Close()
262263

263264
decoder := json.NewDecoder(r.Body)
264265

0 commit comments

Comments
 (0)