diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-24 12:16:38 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-24 12:16:38 +0100 |
commit | 0cd097e771480673ed681b657f45317d48724cf1 (patch) | |
tree | e21a03835cb2284d8d833bb3862cdbd70d0aed65 | |
parent | 473cd97a45dd1343cec14abfcc60b14b9c12f7e4 (diff) | |
parent | a92cba3dbe4b6877cd19872f0c0f17a8a2f608d9 (diff) | |
download | nextcloud-server-0cd097e771480673ed681b657f45317d48724cf1.tar.gz nextcloud-server-0cd097e771480673ed681b657f45317d48724cf1.zip |
Merge pull request #22612 from owncloud/davclient-update-headers
Update davclient.js for headers fix
-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); |