Skip to content

Commit

Permalink
Revert expected body check to allow nil reset (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
vearutop authored Apr 25, 2023
1 parent c4f3b08 commit 99ea1fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ func (c *Client) ExpectOtherResponsesBody(body []byte) error {

func (c *Client) checkBody(expected, received []byte, cb func(received []byte) error) (err error) {
if len(received) == 0 {
if len(expected) == 0 && expected != nil {
if len(expected) == 0 {
return nil
}

Expand Down

0 comments on commit 99ea1fe

Please sign in to comment.