Skip to content

Commit

Permalink
remove trailing slash on apihost #481 (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
dilox authored Jan 7, 2021
1 parent caeaac7 commit 23b5790
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/property.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"errors"
"fmt"
"os"
"strings"

"github.com/fatih/color"
homedir "github.com/mitchellh/go-homedir"
Expand Down Expand Up @@ -471,7 +472,7 @@ func loadProperties() error {
}

if apiHost, hasProp := props["APIHOST"]; hasProp {
Properties.APIHost = apiHost
Properties.APIHost = strings.TrimRight(apiHost, "/")
}

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

0 comments on commit 23b5790

Please # to comment.