Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-02-24 12:09:54 +0300
committerVincent Petry <pvince81@owncloud.com>2016-02-24 12:09:54 +0300
commita92cba3dbe4b6877cd19872f0c0f17a8a2f608d9 (patch)
treec242c65863a0abc1672a39958fb978156c813ecc /core
parent0d715c1184cf98ac9aae32e42056cf8fad9e7e30 (diff)
Update davclient.js for headers fix
Diffstat (limited to 'core')
-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);