From 577fed8730d79f583eb48dfc81674164e1fc471e Mon Sep 17 00:00:00 2001 From: Logan Attwood Date: Wed, 27 Dec 2023 01:37:45 -0400 Subject: [PATCH] Don't put the same bytes.Buffer into sync.Pool twice (#745) --- middleware.go | 1 - 1 file changed, 1 deletion(-) diff --git a/middleware.go b/middleware.go index a43a41b5..ac2bbc9e 100644 --- a/middleware.go +++ b/middleware.go @@ -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) {