diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-12-14 17:42:13 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-12-14 17:42:13 +0100 |
commit | ab9849e72f9a4ea78dcdd7ce4a87a5353aebd478 (patch) | |
tree | 6be58734e067cab169c0ba0a55a214e42de35eea /apps/files_sharing | |
parent | db41c4f4b5f27757838ba17c03f6f263b91af527 (diff) | |
download | nextcloud-server-ab9849e72f9a4ea78dcdd7ce4a87a5353aebd478.tar.gz nextcloud-server-ab9849e72f9a4ea78dcdd7ce4a87a5353aebd478.zip |
Use Authorization headers for public webdav instead of URL
Instead of prepending the token as username in the URL, use the
Authorization header instead. This is because IE9 considers this a
cross-domain call and refuses to do it in the first place.
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() { |