Git-LFS fails to push - "Uploading failed due to unsupported Content-Type header(s)."

I have created a new repository in our Git-Lab installation and cloned it using https. Then I initialized Git-LFS and tracked/committed 2 files, a 150MB .dmg file and a 16MB .tgz file. When trying to push, I’m getting following error:

...
Uploading LFS objects:   0% (0/2), 146 MB | 2.5 MB/s                            
Uploading LFS objects:  50% (1/2), 147 MB | 2.5 MB/s                            
info: Uploading failed due to unsupported Content-Type header(s).
Uploading LFS objects:  50% (1/2), 147 MB | 2.5 MB/s                            
info: Consider disabling Content-Type detection with:
info: 
info:   $ git config lfs.contenttype false
Uploading LFS objects:  50% (1/2), 147 MB | 2.5 MB/s, done
Enumerating objects: 6, done.
Delta compression using up to 4 threads
Total 5 (delta 0), reused 0 (delta 0)
remote: GitLab: LFS objects are missing. Ensure LFS is properly set up or try a manual "git lfs push --all".        
error: failed to push some refs to 'https://server/user/test.git'

Setting lfs.contenttype to false does not make any difference. How to resolve the problem?

Mike

Does anybody has an idea how to solve this problem? Is there something I can debug? Should I ask in the Git-LFS community instead?

https://github.com/git-lfs/git-lfs/issues/3171
use git config lfs.contenttype false