fixed bug where Redirect recursively called itself
This commit is contained in:
parent
a0f582d832
commit
a82d2c5787
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue