mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 05:11:31 +00:00
Merge pull request #3289 from nezorflame/patch-1
Remove panic from Redirect()
This commit is contained in:
commit
7e0649d661
@ -275,7 +275,6 @@ func (c *Controller) viewPath() string {
|
|||||||
func (c *Controller) Redirect(url string, code int) {
|
func (c *Controller) Redirect(url string, code int) {
|
||||||
logAccess(c.Ctx, nil, code)
|
logAccess(c.Ctx, nil, code)
|
||||||
c.Ctx.Redirect(code, url)
|
c.Ctx.Redirect(code, url)
|
||||||
panic(ErrAbort)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the data depending on the accepted
|
// Set the data depending on the accepted
|
||||||
|
Loading…
Reference in New Issue
Block a user