You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/routers
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.
3 years ago
..
api/v1 Update documents for Gitea behind reverse proxy. Fix some small bugs (some URLs are generated without sub-path) (#17320) 3 years ago
common Read expected buffer size (#17409) 3 years ago
install Use a variable but a function for IsProd because of a slight performance increment (#17368) 3 years ago
private Ensure correct SSH permissions check for private and restricted users (#17370) 3 years ago
utils just add some unit tests (#16291) 3 years ago
web Fix CSV render error (#17406) 3 years ago
init.go Sync gitea app path for git hooks and authorized keys when starting (#17335) 3 years ago