From 1c5b9082699cf579c237d43ea466314640a39f81 Mon Sep 17 00:00:00 2001 From: Rogee Date: Wed, 8 Jan 2025 14:54:12 +0800 Subject: [PATCH] fix: fiber/v3.beta4 compatibility --- templates/project/app/errorx/error.go.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/project/app/errorx/error.go.tpl b/templates/project/app/errorx/error.go.tpl index 4388fe5..f9af7be 100644 --- a/templates/project/app/errorx/error.go.tpl +++ b/templates/project/app/errorx/error.go.tpl @@ -117,7 +117,7 @@ func (r *Response) Response(ctx fiber.Ctx) error { r.format() } - contentType := utils.ToLower(utils.UnsafeString(ctx.Context().Request.Header.ContentType())) + contentType := utils.ToLower(utils.UnsafeString(ctx.Request().Header.ContentType())) contentType = binder.FilterFlags(utils.ParseVendorSpecificContentType(contentType)) log.