For instance, omitting this header leads to an error when fetching LFS objects from github.com:
$ dvc import https://github.com/githubschool/lfs-example TogglDesktop-7_4_373.dmg
Importing 'TogglDesktop-7_4_373.dmg (https://github.com/githubschool/lfs-example)' -> 'TogglDesktop-7_4_373.dmg'
...
Could not open LFS object, falling back to raw pointer
...
github.com responds to the Batch API request with HTTP status code 406 and the following response body:
I've fixed the Batch API request header to include
Accept: application/vnd.git-lfs+json
as stated in the spec:For instance, omitting this header leads to an error when fetching LFS objects from github.com:
github.com responds to the Batch API request with HTTP status code 406 and the following response body:
When the
Accept
header is included, it works fine.