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 (
"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)
}