add UnversionedPath() to fix ServerAPIVersions()
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user