diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2017-01-26 13:58:05 -0500 |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2017-02-07 09:44:24 -0500 |
commit | 5c20e50f46c6cf7634a20027c5ae257a6c25d995 (patch) | |
tree | c5fd309f173fbb5b42ea430285e268285a302d36 /spec/requests | |
parent | d391f743841132375ccf9f9aaddb649ded83f584 (diff) | |
download | gitlab-ce-5c20e50f46c6cf7634a20027c5ae257a6c25d995.tar.gz |
lfs: do not require auth for public repositories
LFS has the `authenticated` field in the response for downloads of
objects to indicate that the object does not need authentication to
access it.
Spec: https://github.com/git-lfs/git-lfs/blob/master/docs/api/batch.md#successful-responses
Fixes #23360.
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/lfs_http_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/requests/lfs_http_spec.rb b/spec/requests/lfs_http_spec.rb index 9bfc84c7425..c0e7bab8199 100644 --- a/spec/requests/lfs_http_spec.rb +++ b/spec/requests/lfs_http_spec.rb @@ -600,6 +600,7 @@ describe 'Git LFS API and storage' do expect(json_response).to eq('objects' => [ { 'oid' => sample_oid, 'size' => sample_size, + 'authenticated' => true, 'actions' => { 'download' => { 'href' => "#{project.http_url_to_repo}/gitlab-lfs/objects/#{sample_oid}", |