From a3c28705e7b22ecf5b59407963373bc23d998d8d Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Sun, 8 Jul 2018 14:47:51 +0200 Subject: [PATCH] fix incorrect logout redirect method --- webcontroller/userAccount.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webcontroller/userAccount.go b/webcontroller/userAccount.go index f77826f..0fc7705 100644 --- a/webcontroller/userAccount.go +++ b/webcontroller/userAccount.go @@ -21,7 +21,7 @@ func (wc *WebController) serveLogout( } } - http.Redirect(w, r, "/", http.StatusPermanentRedirect) + http.Redirect(w, r, "/", http.StatusSeeOther) } func (wc *WebController) serveUserHome( @@ -32,7 +32,7 @@ func (wc *WebController) serveUserHome( var key string var err error if key, err = wc.getAPIKey(r); err != nil { - http.Redirect(w, r, "/", http.StatusTemporaryRedirect) + http.Redirect(w, r, "/", http.StatusSeeOther) return }