support external-url

This commit is contained in:
Mitsuhiro Tanda 2016-02-23 21:23:58 +09:00
parent 15006a7ed8
commit 67ee8ba510
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,