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:
CTllo 2017-09-13 16:13:23 +08:00 committed by Lauris BH
parent efc028eef5
commit 2a89a15ce3

View file

@ -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)
}