fixed global 'asterisks' header not defined

This commit is contained in:
Jochen Becker
2017-10-26 11:27:30 +02:00
parent 0407a561fc
commit 8c596d80b0
+1
View File
@@ -151,6 +151,7 @@ var http = {
return {'Authorization': 'Basic ' + b64EncodeUnicode(username + ':' + password)};
},
useBasicAuth: function (username, password) {
this.headers['*'] = this.headers['*'] || {};
this.headers['*'].Authorization = 'Basic ' + b64EncodeUnicode(username + ':' + password);
},
setHeader: function () {