Skip to content

Commit

Permalink
Don't put the same bytes.Buffer into sync.Pool twice (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
lattwood committed Dec 27, 2023
1 parent 105f718 commit 577fed8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion middleware.go
Expand Up @@ -481,7 +481,6 @@ func handleContentType(c *Client, r *Request) {

func handleRequestBody(c *Client, r *Request) error {
var bodyBytes []byte
releaseBuffer(r.bodyBuf)
r.bodyBuf = nil

switch body := r.Body.(type) {
Expand Down

0 comments on commit 577fed8

Please sign in to comment.