mirror of
https://github.com/gogs/gogs.git
synced 2026-01-19 22:02:23 +01:00
* Use temporary file to avoid out-of-memory when receiving big chunk. Not perfect but I think it's a reasonable solution. For small request bodies, I suppose performance wouldn't be an issue. For large ones, this seems to be a necessary evil. * Must close the open file to avoid fd leaks