auth clean up and redirect fixes
This commit is contained in:
@@ -81,7 +81,8 @@ func writeResponse(c *gin.Context, res Response) {
|
||||
}
|
||||
|
||||
if code, to, ok := res.GetRedirect(); ok {
|
||||
http.Redirect(w, c.Request, to, code.Int())
|
||||
c.Redirect(code.Int(), to)
|
||||
c.Abort()
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user