Skip to content

🎧 Your Personal Streaming Service

Replaced literal 302 with http constant (#1006)

Ayush Naiduf7dfabaa4093
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()