banner: use reposCacheByName

This commit is contained in:
mappu 2022-12-31 14:55:15 +13:00
parent b84b7bdb4e
commit cb16a667cc
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ func (this *Application) Bannerpage(w http.ResponseWriter, r *http.Request, repo
this.reposMut.RLock()
defer this.reposMut.RUnlock()
ridx, ok := this.reposAlphabeticalOrder[repoName]
ridx, ok := this.reposCacheByName[repoName]
if !ok {
w.Header().Set(`Location`, `/static/no_image.png`)
w.WriteHeader(301)