diff --git a/apprise/notify.go b/apprise/notify.go index 5003fd6..a8e3f8a 100644 --- a/apprise/notify.go +++ b/apprise/notify.go @@ -116,7 +116,7 @@ func (n *Notifier) Send(ctx context.Context, m *Message) error { if err != nil { return fmt.Errorf("failed to send message: %w", err) } - defer resp.Body.Close() //nolint:errcheck + defer resp.Body.Close() //nolint:errcheck,gosec switch resp.StatusCode { case http.StatusOK, http.StatusCreated, http.StatusNoContent, http.StatusAccepted: return nil