fix: use io instead of ioutil

This commit is contained in:
unteem 2024-11-04 15:49:30 +01:00
parent 21bf37baf2
commit 71d5726c39

View file

@ -17,7 +17,7 @@ package phpfpm
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"io/ioutil" "io"
"net/url" "net/url"
"regexp" "regexp"
"strconv" "strconv"
@ -178,7 +178,7 @@ func (p *Pool) Update() (err error) {
defer resp.Body.Close() defer resp.Body.Close()
content, err := ioutil.ReadAll(resp.Body) content, err := io.ReadAll(resp.Body)
if err != nil { if err != nil {
return p.error(err) return p.error(err)
} }