⬆️ upgrade dependencies

This commit is contained in:
naiba
2022-09-14 22:26:14 +08:00
parent 87e1b8efca
commit 1561ccb2fb
4 changed files with 37 additions and 37 deletions

View File

@@ -4,7 +4,7 @@ import (
"crypto/tls"
"errors"
"fmt"
"io/ioutil"
"io"
"net/http"
"net/url"
"strings"
@@ -150,7 +150,7 @@ func (ns *NotificationServerBundle) Send(message string) error {
if resp.StatusCode < 200 || resp.StatusCode > 299 {
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
body, _ := io.ReadAll(resp.Body)
return fmt.Errorf("%d@%s %s", resp.StatusCode, resp.Status, string(body))
}