add UnversionedPath() to fix ServerAPIVersions()

This commit is contained in:
James DeFelice
2015-06-09 17:23:42 +00:00
parent 79bb4eda46
commit b5583db1d2
3 changed files with 62 additions and 1 deletions

View File

@@ -140,7 +140,7 @@ func (c *Client) ServerVersion() (*version.Info, error) {
// ServerAPIVersions retrieves and parses the list of API versions the server supports.
func (c *Client) ServerAPIVersions() (*api.APIVersions, error) {
body, err := c.Get().AbsPath("/api").Do().Raw()
body, err := c.Get().UnversionedPath("").Do().Raw()
if err != nil {
return nil, err
}