From f7dfabaa4093de01fd072a0515bdc1550a9df358 Mon Sep 17 00:00:00 2001 From: Ayush Naidu Date: Thu, 8 Apr 2021 23:47:14 +0530 Subject: [PATCH] Replaced literal 302 with http constant (#1006) --- server/app/serve_index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app/serve_index.go b/server/app/serve_index.go index 4b36ae87e..b0dd08c81 100644 --- a/server/app/serve_index.go +++ b/server/app/serve_index.go @@ -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()