Skip to content

Commit

Permalink
fix: implement the fix that resolve the 205 miss-handling
Browse files Browse the repository at this point in the history
Similar to the check for 204.
  • Loading branch information
nobe4 committed May 19, 2024
1 parent 1463511 commit dcd25bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/api/rest_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ func (c *RESTClient) DoWithContext(ctx context.Context, method string, path stri
if resp.StatusCode == http.StatusNoContent {
return nil
}

if resp.StatusCode == http.StatusResetContent {
return nil
}

defer resp.Body.Close()

b, err := io.ReadAll(resp.Body)
Expand Down

0 comments on commit dcd25bb

Please sign in to comment.