mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-24 10:00:50 +00:00
Add ETag header to avatars (#721)
This commit is contained in:
parent
8093b3372e
commit
8555e888d8
7 changed files with 50 additions and 9 deletions
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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue