diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-17 15:30:13 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-17 15:30:13 +0100 |
commit | 1285b780860fe782efe845f364e590a8e47bb564 (patch) | |
tree | 420b1301315cba0c6afee0be7a77f4171254b3f8 /apps/files_sharing | |
parent | 38f4407761ea2d5cb2562518e207a43622f40b30 (diff) | |
parent | 064dcc079d8dba1754cf80fff66941f31d439002 (diff) | |
download | nextcloud-server-1285b780860fe782efe845f364e590a8e47bb564.tar.gz nextcloud-server-1285b780860fe782efe845f364e590a8e47bb564.zip |
Merge pull request #21200 from owncloud/files-authorizationheader
Use Authorization headers for public webdav in web UI
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/tests/js/publicAppSpec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/js/publicAppSpec.js b/apps/files_sharing/tests/js/publicAppSpec.js index 74f008025e1..2aaf758f3e3 100644 --- a/apps/files_sharing/tests/js/publicAppSpec.js +++ b/apps/files_sharing/tests/js/publicAppSpec.js @@ -89,7 +89,8 @@ describe('OCA.Sharing.PublicApp tests', function() { it('Uses public webdav endpoint', function() { expect(fakeServer.requests.length).toEqual(1); expect(fakeServer.requests[0].method).toEqual('PROPFIND'); - expect(fakeServer.requests[0].url).toEqual('https://sh4tok@example.com/owncloud/public.php/webdav/subdir'); + expect(fakeServer.requests[0].url).toEqual('https://example.com/owncloud/public.php/webdav/subdir'); + expect(fakeServer.requests[0].requestHeaders.Authorization).toEqual('Basic c2g0dG9rOm51bGw='); }); describe('Download Url', function() { |