From 1a3dcb4f844b247e4cf1fbc04e4f99f00f3f8a61 Mon Sep 17 00:00:00 2001 From: Ilya Danilkin Date: Sun, 12 Aug 2018 05:11:03 +0300 Subject: [PATCH] Remove panic from Redirect() This `panic(ErrAbort)` is unnecessary in `Redirect` function and causes problems in the production code. --- controller.go | 1 - 1 file changed, 1 deletion(-) diff --git a/controller.go b/controller.go index 8be43a33..01c568f1 100644 --- a/controller.go +++ b/controller.go @@ -275,7 +275,6 @@ func (c *Controller) viewPath() string { func (c *Controller) Redirect(url string, code int) { logAccess(c.Ctx, nil, code) c.Ctx.Redirect(code, url) - panic(ErrAbort) } // Set the data depending on the accepted