Skip to content

Commit

Permalink
fixed issue with os library
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamed Belgaied Hassine <[email protected]>
  • Loading branch information
belgaied2 committed Dec 17, 2024
1 parent 33de92d commit 554fb0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"os"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 554fb0f

Please sign in to comment.