From 71d5726c3901c5803114c30e267814db22cdb27f Mon Sep 17 00:00:00 2001 From: unteem Date: Mon, 4 Nov 2024 15:49:30 +0100 Subject: [PATCH] fix: use io instead of ioutil --- phpfpm/phpfpm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpfpm/phpfpm.go b/phpfpm/phpfpm.go index a7c3bb7..33d955c 100644 --- a/phpfpm/phpfpm.go +++ b/phpfpm/phpfpm.go @@ -17,7 +17,7 @@ package phpfpm import ( "encoding/json" "fmt" - "io/ioutil" + "io" "net/url" "regexp" "strconv" @@ -178,7 +178,7 @@ func (p *Pool) Update() (err error) { defer resp.Body.Close() - content, err := ioutil.ReadAll(resp.Body) + content, err := io.ReadAll(resp.Body) if err != nil { return p.error(err) }