Merge pull request #192 from mtanda/external-url

Support external-url
This commit is contained in:
Fabian Reinartz 2016-02-23 13:27:30 +01:00
commit 18acf9993a
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ func New(cfg Config) (Client, error) {
if err != nil {
return nil, err
}
u.Path = apiPrefix
u.Path = strings.TrimRight(u.Path, "/") + apiPrefix
return &httpClient{
endpoint: u,