1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-05-11 05:55:29 +00:00

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
7 changed files with 21 additions and 0 deletions

View File

@ -256,6 +256,7 @@ func APIContexter() func(http.Handler) http.Handler {
},
Org: &APIOrganization{},
}
defer ctx.Close()
ctx.Req = WithAPIContext(WithContext(req, ctx.Context), &ctx)