1
0
Fork 0
forked from forgejo/forgejo

Call MultipartForm.RemoveAll when request finishes (#19606)

This commit is contained in:
wxiaoguang 2022-05-05 22:13:23 +08:00 committed by GitHub
parent 7b089c465d
commit 04fc4b7e05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 21 additions and 0 deletions

View file

@ -100,6 +100,7 @@ func PackageContexter() func(next http.Handler) http.Handler {
Resp: NewResponse(resp),
Data: map[string]interface{}{},
}
defer ctx.Close()
ctx.Req = WithContext(req, &ctx)