Skip to content

Fix LFS uploads not working with git-lfs 2.5.0 (EE port)

Stan Hu requested to merge sh-lfs-fix-content-type-ee into master

EE port of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20923

git-lfs 2.5.0 now sets the Content-Type header instead of hard-coding it to application/octet-stream: https://github.com/git-lfs/git-lfs/pull/3137

To avoid this issue, we explicitly tell the client to use application/octet-stream.

Closes gitlab-ce#49752

Edited by 🤖 GitLab Bot 🤖

Merge request reports