fix: use io instead of ioutil
This commit is contained in:
parent
21bf37baf2
commit
71d5726c39
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue