From f44500f77af159aeb9f86aa23ecfbdd321ee5277 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 22 Jun 2016 16:58:06 +0200 Subject: [PATCH] Init the headers in iedavclient.js --- core/js/files/iedavclient.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/js/files/iedavclient.js b/core/js/files/iedavclient.js index 9e83f5b9a2..a0185fb3be 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);