Skip to content

Commit 98165a1

Browse files
committed
Fix broken avatars since go-gitea#15301
There was a missing * from the avatars routes in go-gitea#15301. Fix go-gitea#15727 Signed-off-by: Andrew Thornton <[email protected]>
1 parent 2bd5408 commit 98165a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/routes/web.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ func WebRoutes() *web.Route {
163163
))
164164

165165
// We use r.Route here over r.Use because this prevents requests that are not for avatars having to go through this additional handler
166-
routes.Route("/avatars", "GET, HEAD", storageHandler(setting.Avatar.Storage, "avatars", storage.Avatars))
167-
routes.Route("/repo-avatars", "GET, HEAD", storageHandler(setting.RepoAvatar.Storage, "repo-avatars", storage.RepoAvatars))
166+
routes.Route("/avatars/*", "GET, HEAD", storageHandler(setting.Avatar.Storage, "avatars", storage.Avatars))
167+
routes.Route("/repo-avatars/*", "GET, HEAD", storageHandler(setting.RepoAvatar.Storage, "repo-avatars", storage.RepoAvatars))
168168

169169
// for health check - doeesn't need to be passed through gzip handler
170170
routes.Head("/", func(w http.ResponseWriter, req *http.Request) {

0 commit comments

Comments
 (0)