forgejo/routers/web/repo
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 fix artifact range requests (#4218) 2024-07-10 05:28:01 +00:00
badges Enable unparam linter (#31277) 2024-06-16 13:42:58 +02:00
flags
setting
activity.go
attachment.go
blame.go
branch.go
cherry_pick.go
code_frequency.go
commit.go
compare.go
contributors.go Fix Activity Page Contributors dropdown (#31264) 2024-06-18 20:05:23 +02:00
download.go
editor.go Add missed return after ctx.ServerError (#31130) 2024-06-02 16:26:54 +02:00
editor_test.go
find.go
githttp.go
githttp_test.go
helper.go
helper_test.go
issue.go [FEAT] expose fuzzy search for issues/repo (#4160) 2024-06-17 18:58:24 +00:00
issue_content_history.go Remove unnecessary inline style for tab-size (#31224) 2024-06-09 11:13:39 +02:00
issue_dependency.go
issue_label.go
issue_label_test.go
issue_lock.go
issue_pin.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
main_test.go
middlewares.go
migrate.go
milestone.go
packages.go
patch.go
projects.go
projects_test.go
pull.go
pull_review.go
pull_review_test.go
recent_commits.go
release.go
release_test.go
render.go
repo.go Rename repo_model.SearchOrderByMap to repo_model.OrderByMap (#31359) 2024-06-16 13:42:59 +02:00
search.go
topic.go
treelist.go
view.go add org readme to search with priority 2024-06-16 15:27:28 +02:00
view_test.go
wiki.go
wiki_test.go