fix: fiber/v3.beta4 compatibility

This commit is contained in:
Rogee
2025-01-08 14:54:12 +08:00
parent d28bc000b4
commit 1c5b908269

View File

@@ -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.