Skip to content

Commit 23b5790

Browse files
authored
remove trailing slash on apihost #481 (#485)
1 parent caeaac7 commit 23b5790

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commands/property.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"errors"
2222
"fmt"
2323
"os"
24+
"strings"
2425

2526
"github.com/fatih/color"
2627
homedir "github.com/mitchellh/go-homedir"
@@ -471,7 +472,7 @@ func loadProperties() error {
471472
}
472473

473474
if apiHost, hasProp := props["APIHOST"]; hasProp {
474-
Properties.APIHost = apiHost
475+
Properties.APIHost = strings.TrimRight(apiHost, "/")
475476
}
476477

477478
if apiHost := os.Getenv("WHISK_APIHOST"); len(apiHost) > 0 {

0 commit comments

Comments
 (0)