Skip to content

Commit

Permalink
remove trailing slash on apihost apache#481
Browse files Browse the repository at this point in the history
  • Loading branch information
dilox committed Mar 17, 2020
1 parent c5daef0 commit edcf065
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/property.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,10 @@ func loadProperties() error {
}

if apiHost, hasProp := props["APIHOST"]; hasProp {
if last := len(apiHost) - 1; last >= 0 && apiHost[last] == '/' {
apiHost = apiHost[:last]
}

Properties.APIHost = apiHost
}

Expand Down

0 comments on commit edcf065

Please sign in to comment.