From 4a2fb1b4cb75a8a66fbe6e6f119fdf1db90b12ad 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);