summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-07-01 11:22:06 +0200
committerGitHub <noreply@github.com>2016-07-01 11:22:06 +0200
commit98818283e5a30a1e6dc25e8ca7a031e9e531e36b (patch)
tree04c9f9b5c847c634f77a4faa4dacf55dbd5a18b7 /core
parent735411d1661f9b62efa4601254ef985a1e90ee76 (diff)
parentf44500f77af159aeb9f86aa23ecfbdd321ee5277 (diff)
downloadnextcloud-server-98818283e5a30a1e6dc25e8ca7a031e9e531e36b.tar.gz
nextcloud-server-98818283e5a30a1e6dc25e8ca7a031e9e531e36b.zip
Merge pull request #25234 from owncloud/stable9-iedavclient-nullheaders
[stable9] 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);