Replaced literal 302 with http constant (#1006)

This commit is contained in:
Ayush Naidu 2021-04-08 23:47:14 +05:30 committed by Joe Stump
parent 7663bda06d
commit 9e12cc9003
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -22,7 +22,7 @@ func serveIndex(ds model.DataStore, fs fs.FS) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
base := path.Join(conf.Server.BaseURL, consts.URLPathUI)
if r.URL.Path == base {
http.Redirect(w, r, base+"/", 302)
http.Redirect(w, r, base+"/", http.StatusFound)
}
c, err := ds.User(r.Context()).CountAll()