From 9a03c94d570ab0e4b6db7dfc286431a890ebff8c Mon Sep 17 00:00:00 2001 From: "Matthew R. Kasun" Date: Fri, 11 Nov 2022 11:38:35 -0500 Subject: [PATCH] remove deprecated io/ioutil --- ee/license.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/license.go b/ee/license.go index e7afb1fe..8341c6d1 100644 --- a/ee/license.go +++ b/ee/license.go @@ -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 }