remove deprecated io/ioutil

This commit is contained in:
Matthew R. Kasun 2022-11-11 11:38:35 -05:00
parent 853b966c9b
commit 9a03c94d57

View file

@ -200,7 +200,7 @@ func validateLicenseKey(encryptedData []byte, publicKey *[32]byte) ([]byte, erro
return nil, fmt.Errorf("could not validate license")
} // if you received a 200 cache the response locally
body, err = io.Copy(validateResponse.Body)
body, err = io.ReadAll(validateResponse.Body)
if err != nil {
return nil, err
}