fix incorrect logout redirect method

This commit is contained in:
Fornax committed 2018-07-08 14:47:51 +02:00
1 parent 3d42d61e0d
commit a3c28705e7
1 file changed
+2 -2
+2 -2
View File
@@ -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
}