From 87a004e577a2180803582caa5082b837a9c2802f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Tue, 8 Aug 2023 15:33:52 +0200 Subject: [PATCH] v0.0.228 bf --- ginext/routes.go | 2 +- goextVersion.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"