Skip to content

Commit

Permalink
Fix posting payload
Browse files Browse the repository at this point in the history
  • Loading branch information
rjshrjndrn authored Jul 25, 2024
1 parent ca8a616 commit 6a18e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requester/requester.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (b *Work) makeRequest(c *http.Client) {
size = resp.ContentLength
code = resp.StatusCode
io.Copy(ioutil.Discard, resp.Body)
resp.Body.Close()
defer resp.Body.Close()
}
t := now()
resDuration = t - resStart
Expand Down

0 comments on commit 6a18e6d

Please sign in to comment.