fixed bug where Redirect recursively called itself

This commit is contained in:
anthdm 2024-06-11 20:58:00 +02:00
parent a0f582d832
commit a82d2c5787

View file

@ -64,7 +64,8 @@ func (kit *Kit) Redirect(status int, url string) error {
kit.Response.WriteHeader(http.StatusSeeOther)
return nil
}
return kit.Redirect(status, url)
http.Redirect(kit.Response, kit.Request, url, status)
return nil
}
func (kit *Kit) JSON(status int, v any) error {