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 68d776b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions commands/property.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,11 @@ func loadProperties() error {
}

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

Properties.APIHost = apiHost
}

Expand Down

0 comments on commit 68d776b

Please sign in to comment.