fix incorrect logout redirect method

This commit is contained in:
2018-07-08 14:47:51 +02:00
parent 3d42d61e0d
commit a3c28705e7

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
}