mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
Call MultipartForm.RemoveAll when request finishes (#19606)
This commit is contained in:
1 parent
7b089c465d
commit
04fc4b7e05
7 files changed
+21
No files matched your search
@@ -66,6 +66,8 @@ func PrivateContexter() func(http.Handler) http.Handler {
|
||||
Data: map[string]interface{}{},
|
||||
},
|
||||
}
|
||||
defer ctx.Close()
|
||||
|
||||
ctx.Req = WithPrivateContext(req, ctx)
|
||||
ctx.Data["Context"] = ctx
|
||||
next.ServeHTTP(ctx.Resp, ctx.Req)
|
||||
|
||||
Reference in new issue
Block a user