mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-26 05:16:25 +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
|
|
@ -12,7 +12,6 @@ import (
|
|||
"errors"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
|
|
@ -65,7 +64,7 @@ func sign(key string, s string, urlOnly bool) ([]byte, error) {
|
|||
|
||||
func parseKey(s string) ([]byte, error) {
|
||||
if strings.HasPrefix(s, "@") {
|
||||
return ioutil.ReadFile(s[1:])
|
||||
return os.ReadFile(s[1:])
|
||||
}
|
||||
return []byte(s), nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue