summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-24 12:16:38 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-24 12:16:38 +0100
commit0cd097e771480673ed681b657f45317d48724cf1 (patch)
treee21a03835cb2284d8d833bb3862cdbd70d0aed65
parent473cd97a45dd1343cec14abfcc60b14b9c12f7e4 (diff)
parenta92cba3dbe4b6877cd19872f0c0f17a8a2f608d9 (diff)
downloadnextcloud-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.js3
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);