diff --git a/fasthttputil/pipe.go b/fasthttputil/pipe.go index acf8d27..0006e5d 100644 --- a/fasthttputil/pipe.go +++ b/fasthttputil/pipe.go @@ -246,7 +246,9 @@ func releaseByteBuffer(b *byteBuffer) { var byteBufferPool = &sync.Pool{ New: func() interface{} { - return &byteBuffer{} + return &byteBuffer{ + b: make([]byte, 1024), + } }, }