mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-16 20:12:22 +03:00
Replaced literal 302 with http constant (#1006)
This commit is contained in:
parent
d8a1773d50
commit
f7dfabaa40
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user