Fix request URL in ServerVersion function (#71)
"api/v1" is useless, it is already included in func (c *Client)getParsedResponse
This commit is contained in:
parent
efc028eef5
commit
2a89a15ce3
1 changed files with 1 additions and 1 deletions
|
@ -52,5 +52,5 @@ type ServerVersion struct {
|
|||
// ServerVersion returns the version of the server
|
||||
func (c *Client) ServerVersion() (string, error) {
|
||||
v := ServerVersion{}
|
||||
return v.Version, c.getParsedResponse("GET", "/api/v1/version", nil, nil, &v)
|
||||
return v.Version, c.getParsedResponse("GET", "/version", nil, nil, &v)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue