We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2e7c9b + b00fb97 commit 3aa6cc7Copy full SHA for 3aa6cc7
core.go
@@ -27,7 +27,7 @@ const (
27
// User-Agent is formated as "UserAgentBase/UserAgentVersion;runtime.Version()".
28
const (
29
UserAgentBase = "mailjet-api-v3-go"
30
- UserAgentVersion = "3.0.0"
+ UserAgentVersion = "3.0.1"
31
)
32
33
@@ -251,7 +251,7 @@ func checkResponseError(resp *http.Response) error {
251
var mailjetErr RequestError
252
mailjetErr.StatusCode = resp.StatusCode
253
254
- b, err := io.ReadAll(resp.Body)
+ b, err := ioutil.ReadAll(resp.Body)
255
if err != nil {
256
mailjetErr.ErrorMessage = "unable to read response body"
257
mailjetErr.ErrorInfo = err.Error()
0 commit comments