Init the headers in iedavclient.js

This commit is contained in:
Vincent Petry 2016-06-22 16:58:06 +02:00
parent 54209abb74
commit f44500f77a
No known key found for this signature in database
GPG Key ID: AF8F9EFC56562186
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@
var self = this;
var xhr = this.xhrProvider();
headers = headers || {};
if (this.userName) {
headers['Authorization'] = 'Basic ' + btoa(this.userName + ':' + this.password);