forgejo/models
ThetaDev e80f8ff69f fix artifact range requests (#4218)
I noticed that Forgejo does not allow HTTP range requests when downloading artifacts. All other file downloads like releases and packages support them.

So I looked at the code and found that the artifact download endpoint uses a simple io.Copy to serve the file contents instead of using the established `ServeContentByReadSeeker` function which does take range requests into account.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4218
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: ThetaDev <thetadev@magenta.de>
Co-committed-by: ThetaDev <thetadev@magenta.de>
2024-07-10 05:28:01 +00:00
..
actions
activities Fix web notification icon not updated once you read all notifications (#31447) 2024-06-29 07:33:37 +02:00
admin
asymkey
auth
avatars
db
dbfs
fixtures fix artifact range requests (#4218) 2024-07-10 05:28:01 +00:00
forgefed
forgejo/semver
forgejo_migrations
git
issues Optimization of labels handling in issue_search (#4228) 2024-06-28 05:11:57 +00:00
migrations
organization
packages
perm
project
pull
repo Add support for workflow_dispatch (#3334) 2024-06-28 05:17:11 +00:00
secret
shared/types
system
unit
unittest
user
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go
repo_test.go
repo_transfer.go
repo_transfer_test.go