Skip to content

Commit

Permalink
Merge pull request #702 from verti4cal/master
Browse files Browse the repository at this point in the history
ImageGallery with Request-Headers Error
  • Loading branch information
JiHong88 authored Apr 10, 2021
2 parents 4b6ca8e + c380cd8 commit e3e696d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/modules/fileBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,12 @@

const xmlHttp = fileBrowserPlugin._xmlHttp = this.util.getXMLHttpRequest();
xmlHttp.onreadystatechange = fileBrowserPlugin._callBackGet.bind(this, xmlHttp);
xmlHttp.open('get', url, true);
if(browserHeader !== null && typeof browserHeader === 'object' && this._w.Object.keys(browserHeader).length > 0){
for(let key in browserHeader){
xmlHttp.setRequestHeader(key, browserHeader[key]);
}
}
xmlHttp.open('get', url, true);
xmlHttp.send(null);

this.plugins.fileBrowser.showBrowserLoading();
Expand Down

0 comments on commit e3e696d

Please sign in to comment.