summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);