1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-09 02:58:20 +00:00

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

This commit is contained in:
wxiaoguang
2022-05-05 22:13:59 +08:00
committed by GitHub
parent 7b18c67ac9
commit 46637b1164
6 changed files with 20 additions and 0 deletions

View File

@@ -84,6 +84,8 @@ func Init(next http.Handler) http.Handler {
"PasswordHashAlgorithms": user_model.AvailableHashAlgorithms,
},
}
defer ctx.Close()
for _, lang := range translation.AllLangs() {
if lang.Lang == locale.Language() {
ctx.Data["LangName"] = lang.Name