mirror of https://github.com/go-gitea/gitea.git
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.
44f2c27d28
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 | |
---|---|---|
.. | ||
admin | 3 years ago | |
dev | 4 years ago | |
events | 3 years ago | |
explore | 3 years ago | |
feed | 3 years ago | |
org | 3 years ago | |
repo | 3 years ago | |
user | 3 years ago | |
base.go | 3 years ago | |
goget.go | 4 years ago | |
home.go | 4 years ago | |
metrics.go | 4 years ago | |
nodeinfo.go | 3 years ago | |
swagger_json.go | 4 years ago | |
web.go | 3 years ago |