remotefile: Use io.ReadAll not ioutil.ReadAll
This commit is contained in:
parent
2040e93e56
commit
c6a8d89da6
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@ package remotefile
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
)
|
||||
|
|
@ -29,7 +29,7 @@ func (c *Client) makeRequest(u *url.URL) ([]byte, error) {
|
|||
}
|
||||
|
||||
defer resp.Body.Close()
|
||||
output, err := ioutil.ReadAll(resp.Body)
|
||||
output, err := io.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue