mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-07 12:18:44 +00:00
Add ETag header to avatars (#721)
This commit is contained in:
4
vendor/gopkg.in/macaron.v1/router.go
generated
vendored
4
vendor/gopkg.in/macaron.v1/router.go
generated
vendored
@@ -258,7 +258,9 @@ func (r *Router) NotFound(handlers ...Handler) {
|
||||
validateHandlers(handlers)
|
||||
r.notFound = func(rw http.ResponseWriter, req *http.Request) {
|
||||
c := r.m.createContext(rw, req)
|
||||
c.handlers = append(r.m.handlers, handlers...)
|
||||
c.handlers = make([]Handler, 0, len(r.m.handlers)+len(handlers))
|
||||
c.handlers = append(c.handlers, r.m.handlers...)
|
||||
c.handlers = append(c.handlers, handlers...)
|
||||
c.run()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user