diff options
Diffstat (limited to 'internal/db/webhook.go')
-rw-r--r-- | internal/db/webhook.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/webhook.go b/internal/db/webhook.go index 3e816061..c26cb5b4 100644 --- a/internal/db/webhook.go +++ b/internal/db/webhook.go @@ -10,7 +10,7 @@ import ( "crypto/tls" "encoding/hex" "fmt" - "io/ioutil" + "io" "net/url" "strings" "time" @@ -775,7 +775,7 @@ func (t *HookTask) deliver() { t.ResponseInfo.Headers[k] = strings.Join(vals, ",") } - p, err := ioutil.ReadAll(resp.Body) + p, err := io.ReadAll(resp.Body) if err != nil { t.ResponseInfo.Body = fmt.Sprintf("read body: %s", err) return |