banner: use reposCacheByName
This commit is contained in:
parent
b84b7bdb4e
commit
cb16a667cc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user