Skip to content

Commit

Permalink
fix: Trim trailing slash from the castai api url (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
KarolisL authored Jan 15, 2025
1 parent ee82b93 commit 908079e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ func Get() Config {
if !strings.HasPrefix(cfg.API.URL, "https://") && !strings.HasPrefix(cfg.API.URL, "http://") {
cfg.API.URL = fmt.Sprintf("https://%s", cfg.API.URL)
}
cfg.API.URL = strings.TrimSuffix(cfg.API.URL, "/")

if cfg.EKS != nil {
if cfg.EKS.AccountID == "" {
Expand Down

0 comments on commit 908079e

Please sign in to comment.