Skip to content

Commit 917cb12

Browse files
committed
fix(controller-sdk-go): panic when 500 statuscode
1 parent e526271 commit 917cb12

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

http.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ func (c *Client) Request(method string, path string, body []byte) (*http.Respons
5656
res, err := c.HTTPClient.Do(req)
5757

5858
if err != nil {
59-
return nil, err
59+
return res, err
6060
}
6161

6262
if err = checkForErrors(res); err != nil {
63-
return nil, err
63+
return res, err
6464
}
6565

6666
apiVersion := res.Header.Get("DRYCC_API_VERSION")

0 commit comments

Comments
 (0)