mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 18:32:08 +08:00
remove deprecated io/ioutil
This commit is contained in:
parent
853b966c9b
commit
9a03c94d57
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ func validateLicenseKey(encryptedData []byte, publicKey *[32]byte) ([]byte, erro
|
||||||
return nil, fmt.Errorf("could not validate license")
|
return nil, fmt.Errorf("could not validate license")
|
||||||
} // if you received a 200 cache the response locally
|
} // if you received a 200 cache the response locally
|
||||||
|
|
||||||
body, err = io.Copy(validateResponse.Body)
|
body, err = io.ReadAll(validateResponse.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue