mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-25 21:06:24 +02:00
all: remove deprecated use of io/ioutil
This commit is contained in:
parent
12d8f92d33
commit
5ffd8db241
6 changed files with 9 additions and 14 deletions
|
|
@ -11,7 +11,6 @@ import (
|
|||
"encoding/hex"
|
||||
"errors"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net/url"
|
||||
"path"
|
||||
|
|
@ -44,7 +43,7 @@ func (c *cache) Get(key string) ([]byte, bool) {
|
|||
return nil, false
|
||||
}
|
||||
|
||||
value, err := ioutil.ReadAll(resp.Body)
|
||||
value, err := io.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
log.Printf("error reading s3 response body: %v", err)
|
||||
return nil, false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue