diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-02-24 10:09:54 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-02-24 10:09:54 +0100 |
commit | a92cba3dbe4b6877cd19872f0c0f17a8a2f608d9 (patch) | |
tree | c242c65863a0abc1672a39958fb978156c813ecc /core | |
parent | 0d715c1184cf98ac9aae32e42056cf8fad9e7e30 (diff) | |
download | nextcloud-server-a92cba3dbe4b6877cd19872f0c0f17a8a2f608d9.tar.gz nextcloud-server-a92cba3dbe4b6877cd19872f0c0f17a8a2f608d9.zip |
Update davclient.js for headers fix
Diffstat (limited to 'core')
-rw-r--r-- | core/vendor/davclient.js/lib/client.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/vendor/davclient.js/lib/client.js b/core/vendor/davclient.js/lib/client.js index deb0e1ee964..db1a1954aff 100644 --- a/core/vendor/davclient.js/lib/client.js +++ b/core/vendor/davclient.js/lib/client.js @@ -164,7 +164,8 @@ dav.Client.prototype = { var self = this; var xhr = this.xhrProvider(); - + headers = headers || {}; + if (this.userName) { headers['Authorization'] = 'Basic ' + btoa(this.userName + ':' + this.password); // xhr.open(method, this.resolveUrl(url), true, this.userName, this.password); |