Call MultipartForm.RemoveAll when request finishes (#19606) (#19607)

This commit is contained in:
wxiaoguang
2022-05-05 16:13:59 +02:00
committed by GitHub
parent 7b18c67ac9
commit 46637b1164
6 changed files with 20 additions and 0 deletions
+2
View File
@@ -38,6 +38,8 @@ func PrivateContexter() func(http.Handler) http.Handler {
Data: map[string]interface{}{},
},
}
defer ctx.Close()
ctx.Req = WithPrivateContext(req, ctx)
next.ServeHTTP(ctx.Resp, ctx.Req)
})