1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-22 14:18:13 +00:00
Files
gitea/routers/repo/repo.go
Kyle Evans c134aef340 repo: Download: restore some semblance of previous behavior
When archival was made async, the GET endpoint was only useful if a previous
POST had initiated the download. This commit restores the previous behavior,
to an extent; we'll now submit the archive request there and return a
"202 Accepted" to indicate that it's processing if we didn't manage to
complete the request within ~2 seconds of submission.

This lets a client directly GET the archive, and gives them some indication
that they may attempt to GET it again at a later time.
2020-05-05 19:13:23 -05:00

16 KiB