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-06-22 17:58:06 +0300
committerVincent Petry <pvince81@owncloud.com>2016-06-22 17:58:06 +0300
commit4a2fb1b4cb75a8a66fbe6e6f119fdf1db90b12ad (patch)
treebcf4a69eb06cfd9cfa3d175789b8a5b87d71ef44 /core
parentae50e7236fe6d72d561b1c9c968c15471e3f2dcc (diff)
Init the headers in iedavclient.js
Diffstat (limited to 'core')
-rw-r--r--core/js/files/iedavclient.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/js/files/iedavclient.js b/core/js/files/iedavclient.js
index 9e83f5b9a22..a0185fb3bec 100644
--- a/core/js/files/iedavclient.js
+++ b/core/js/files/iedavclient.js
@@ -29,6 +29,7 @@
var self = this;
var xhr = this.xhrProvider();
+ headers = headers || {};
if (this.userName) {
headers['Authorization'] = 'Basic ' + btoa(this.userName + ':' + this.password);