mirror of
https://github.com/go-gitea/gitea
synced 2025-08-07 18:18:20 +00:00
@@ -1635,7 +1635,7 @@ func registerRoutes(m *web.Router) {
|
||||
}
|
||||
|
||||
m.NotFound(func(w http.ResponseWriter, req *http.Request) {
|
||||
ctx := context.GetWebContext(req)
|
||||
ctx := context.GetWebContext(req.Context())
|
||||
routing.UpdateFuncInfo(ctx, routing.GetFuncInfo(ctx.NotFound, "WebNotFound"))
|
||||
ctx.NotFound("", nil)
|
||||
})
|
||||
|
Reference in New Issue
Block a user