summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-06-22 16:58:06 +0200
committerVincent Petry <pvince81@owncloud.com>2016-06-22 18:16:32 +0200
commitf44500f77af159aeb9f86aa23ecfbdd321ee5277 (patch)
tree874226c320d942d6e63298a1191a79f2b7bea32f /core/js
parent54209abb749cd2db9ffaca7a5c438c0172305dd1 (diff)
downloadnextcloud-server-f44500f77af159aeb9f86aa23ecfbdd321ee5277.tar.gz
nextcloud-server-f44500f77af159aeb9f86aa23ecfbdd321ee5277.zip
Init the headers in iedavclient.js
Diffstat (limited to 'core/js')
-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);