From 1a3232a26b6a73361819b12717f7afb728492dd2 Mon Sep 17 00:00:00 2001 From: Dooyong Cho Date: Thu, 7 Apr 2022 14:38:53 +0900 Subject: [PATCH] Fix the redirection code issue --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index faa48133..c9c6b8f3 100644 --- a/context.go +++ b/context.go @@ -973,7 +973,7 @@ func (c *Context) String(code int, format string, values ...any) { // Redirect returns an HTTP redirect to the specific location. func (c *Context) Redirect(code int, location string) { - c.Render(-1, render.Redirect{ + c.Render(code, render.Redirect{ Code: code, Location: location, Request: c.Request,