diff --git a/core/vendor/davclient.js/lib/client.js b/core/vendor/davclient.js/lib/client.js index deb0e1ee96..db1a1954af 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);