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 (
|
||||
"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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue