From a92cba3dbe4b6877cd19872f0c0f17a8a2f608d9 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 24 Feb 2016 10:09:54 +0100 Subject: [PATCH] Update davclient.js for headers fix --- core/vendor/davclient.js/lib/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.5