From 554fb0fe05d678e93f7167de94c0b47a3e93cf8d Mon Sep 17 00:00:00 2001 From: Mohamed Belgaied Hassine <60746935+belgaied2@users.noreply.github.com> Date: Tue, 17 Dec 2024 19:38:46 +0100 Subject: [PATCH] fixed issue with os library Signed-off-by: Mohamed Belgaied Hassine <60746935+belgaied2@users.noreply.github.com> --- cmd/login.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/login.go b/cmd/login.go index b5b14fb..6faadf9 100644 --- a/cmd/login.go +++ b/cmd/login.go @@ -6,6 +6,7 @@ import ( "encoding/json" "errors" "fmt" + "io" "net/http" "net/url" "os" @@ -290,7 +291,7 @@ func getCertFromServer(ctx *cli.Context, cf *config.ServerConfig) (*cliclient.Ma defer res.Body.Close() - content, err := os.ReadAll(res.Body) + content, err := io.ReadAll(res.Body) if err != nil { return nil, err }