Call MultipartForm.RemoveAll when request finishes (#19606)
This commit is contained in:
parent
7b089c465d
commit
04fc4b7e05
7 changed files with 21 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue