Skip to content

Commit

Permalink
print response code
Browse files Browse the repository at this point in the history
  • Loading branch information
anandnilkal committed Jun 17, 2022
1 parent fe36b69 commit 8904eaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ func (c *Client) doRawRequest(req *http.Request, emptyResponse bool) (io.ReadClo
return nil, out
}

fmt.Printf("response: %d", resp.StatusCode)
if emptyResponse || resp.StatusCode == http.StatusNoContent {
resp.Body.Close()
return nil, nil
Expand Down

0 comments on commit 8904eaa

Please sign in to comment.