Fix the redirection code issue

This commit is contained in:
Dooyong Cho 2022-04-07 14:38:53 +09:00
parent c4580944ae
commit 1a3232a26b

View File

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