go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.01k stars 5.4k forks source link

Enabled chunked transfers in LFS #22233

Open ryank231231 opened 1 year ago

ryank231231 commented 1 year ago

Feature Description

LFS in Gitea currently doesn't use chunked transfers, which causes the whole body to be read before it is stored. This means 100+ MB uploads will be blocked by Cloudflare.

It looks like the LFS client looks for the Transfer-Encoding: chunked header from the server in https://github.com/git-lfs/git-lfs/blob/4140f638e9e305605f2e8cd941355340bb71fbf0/tq/basic_upload.go#L58-59 even though HTTP/1.1 says this isn't required.

Screenshots

No response

Zarpyk commented 4 months ago

Is there some workaround for this "error" or it only can be solve by removing cloudflare as a proxy?

shadeov commented 2 months ago

Please!