support external-url
This commit is contained in:
parent
15006a7ed8
commit
67ee8ba510
|
@ -107,7 +107,7 @@ func New(cfg Config) (Client, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
u.Path = apiPrefix
|
u.Path = strings.TrimRight(u.Path, "/") + apiPrefix
|
||||||
|
|
||||||
return &httpClient{
|
return &httpClient{
|
||||||
endpoint: u,
|
endpoint: u,
|
||||||
|
|
Loading…
Reference in New Issue