diff --git a/ginext/routes.go b/ginext/routes.go index 7ac2ced..78c9905 100644 --- a/ginext/routes.go +++ b/ginext/routes.go @@ -112,7 +112,7 @@ func (w *GinRouteBuilder) Use(middleware ...gin.HandlerFunc) *GinRouteBuilder { func (w *GinRouteBuilder) Handle(handler WHandlerFunc) { if w.routes.wrapper.bufferBody { - arr := make([]gin.HandlerFunc, len(w.handlers)+1) + arr := make([]gin.HandlerFunc, 0, len(w.handlers)+1) arr = append(arr, BodyBuffer()) arr = append(arr, w.handlers...) w.handlers = arr diff --git a/goextVersion.go b/goextVersion.go index 1d43391..7d8572a 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.227" +const GoextVersion = "0.0.228" -const GoextVersionTimestamp = "2023-08-08T15:28:29+0200" +const GoextVersionTimestamp = "2023-08-08T15:33:52+0200"