mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-13 22:47:41 +00:00
Make Golang correctly delete temp files during uploading (#36128)
Fix #36127
This commit is contained in:
1 parent
01351cc6c7
commit
f25409fab8
7 files changed
+57
-11
No files matched your search
@@ -55,7 +55,7 @@ func NewRouter() *Router {
|
||||
// Use supports two middlewares
|
||||
func (r *Router) Use(middlewares ...any) {
|
||||
for _, m := range middlewares {
|
||||
if m != nil {
|
||||
if !isNilOrFuncNil(m) {
|
||||
r.chiRouter.Use(toHandlerProvider(m))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user