The Wayback Machine - https://web.archive.org/web/20220507124217/https://github.com/go-gitea/gitea/pull/19606
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call MultipartForm.RemoveAll when request finishes #19606

Merged
merged 3 commits into from May 5, 2022

Conversation

Copy link
Contributor

@wxiaoguang wxiaoguang commented May 4, 2022

Fix #19595

Golang's mime/multipart/formdata.go caches files on disk, these temp files should be removed by caller when request finishes if we cloned the http.Request

Tested and work as expected

delvh
delvh approved these changes May 5, 2022
lunny
lunny approved these changes May 5, 2022
@6543
Copy link

@6543 6543 commented May 5, 2022

🚀

@6543 6543 merged commit 04fc4b7 into go-gitea:main May 5, 2022
2 checks passed
zjjhot added a commit to zjjhot/gitea that referenced this issue May 5, 2022
* giteaofficial/main:
  Call MultipartForm.RemoveAll when request finishes (go-gitea#19606)
  Remove `RequireHighlightJS` field, update plantuml example. (go-gitea#19615)
  [skip ci] Updated translations via Crowdin
  PullService lock via pullID (go-gitea#19520)
@wxiaoguang wxiaoguang deleted the fix-large-form-tmp-file branch May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants