mirror of
https://github.com/wahyd4/gogs.git
synced 2026-08-25 12:46:24 +10: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