From f80e06078a2f18f975e71d6991b90c0d3da0ff49 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 11 May 2023 04:55:56 +0200 Subject: [PATCH] handlers/home: redirect w/ 303 instead of 301 --- handlers/home.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/home.go b/handlers/home.go index c9d03f0..d9a1144 100644 --- a/handlers/home.go +++ b/handlers/home.go @@ -17,7 +17,7 @@ func Home(client *ent.Client) echo.HandlerFunc { sess, _ := session.Get(setting.SessionCookieName(), c) if sess == nil { log.Info("no session, redirecting to /signin", "endpoint", "/home") - return c.Redirect(http.StatusMovedPermanently, "/signin") + return c.Redirect(http.StatusSeeOther, "/signin") } if sess.Values["foo"] != nil {