Skip to content

Commit 577fed8

Browse files
authored
Don't put the same bytes.Buffer into sync.Pool twice (#745)
1 parent 105f718 commit 577fed8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

middleware.go

-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,6 @@ func handleContentType(c *Client, r *Request) {
481481

482482
func handleRequestBody(c *Client, r *Request) error {
483483
var bodyBytes []byte
484-
releaseBuffer(r.bodyBuf)
485484
r.bodyBuf = nil
486485

487486
switch body := r.Body.(type) {

0 commit comments

Comments
 (0)