0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-21 06:16:09 +01:00
gitea/routers/web/repo
KN4CK3R 44f2c27d28
Fix CSV render error (#17406)
closed #17378 

Both errors from #17378 were caused by  #15175.

Problem 1 (error with added file):
`ToUTF8WithFallbackReader` creates a `MultiReader` from a `byte[2048]` and the remaining reader. `CreateReaderAndGuessDelimiter` tries to read 10000 bytes from this reader but only gets 2048 because that's the first reader in the `MultiReader`. Then the `if size < 1e4` thinks the input is at EOF and just returns that.

Problem 2 (error with changed file):
The blob reader gets defer closed. That was fine because the old version reads the whole file into memory. Now with the streaming version the close needs to defer after the method.
2021-10-25 00:42:32 +02:00
..
activity.go Frontend refactor: move Vue related code from index.js to components dir, and remove unused codes. (#17301) 2021-10-15 10:35:26 +08:00
attachment.go
blame.go
branch.go
commit.go Add buttons to allow loading of incomplete diffs (#16829) 2021-10-15 17:05:33 +01:00
compare.go Fix CSV render error (#17406) 2021-10-25 00:42:32 +02:00
download.go
editor_test.go
editor.go Read expected buffer size (#17409) 2021-10-24 22:12:43 +01:00
http_test.go
http.go
issue_content_history.go Fix issue content history problems, improve UI (#17404) 2021-10-23 22:47:38 +08:00
issue_dependency.go
issue_label_test.go
issue_label.go
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
issue.go Hide command line merge instructions when user can't push (#17339) 2021-10-17 17:58:36 +01:00
lfs.go Read expected buffer size (#17409) 2021-10-24 22:12:43 +01:00
main_test.go
middlewares.go
migrate.go
milestone.go
projects_test.go
projects.go Frontend refactor, PascalCase to camelCase, remove unused code (#17365) 2021-10-21 15:37:43 +08:00
pull_review.go
pull.go Add buttons to allow loading of incomplete diffs (#16829) 2021-10-15 17:05:33 +01:00
release_test.go
release.go
repo.go
search.go
setting_protected_branch.go Add a simple way to rename branch like gh (#15870) 2021-10-08 19:03:04 +02:00
setting.go
settings_test.go
tag.go
topic.go
view.go Read expected buffer size (#17409) 2021-10-24 22:12:43 +01:00
webhook.go
wiki_test.go
wiki.go