Fix GetCombinedStatus() (#470) #471

Closed
6543 wants to merge 13 commits from 6543:backport_470-GetCombinedStatus into main
Showing only changes of commit a9d6bd30e8 - Show all commits

View File

@ -237,7 +237,7 @@ func (c *Client) getResponse(method, path string, header http.Header, body io.Re
func (c *Client) getParsedResponse(method, path string, header http.Header, body io.Reader, obj interface{}) (*Response, error) {
data, resp, err := c.getResponse(method, path, header, body)
if err != nil {
return nil, err
return resp, err
}
return resp, json.Unmarshal(data, obj)
}