mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 18:17:19 +00:00
Call MultipartForm.RemoveAll when request finishes (#19606)
This commit is contained in:
@ -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