Skip to content

Commit

Permalink
fix: Handle URL with trailing / correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanconway committed Jun 5, 2024
1 parent 0605a13 commit 1279f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/korrel8rcli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func newClient() *client.RESTAPI {
}
u, err := url.Parse(*korrel8rURL)
check(err)
if u.Path == "" {
if u.Path == "" || u.Path == "/" {
u.Path = client.DefaultBasePath
}
return client.New(httptransport.New(u.Host, u.Path, []string{u.Scheme}), nil)
Expand Down

0 comments on commit 1279f51

Please sign in to comment.