We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 327bbc6 commit f451a2cCopy full SHA for f451a2c
index.js
@@ -220,7 +220,10 @@ function fetch(...args:any):Promise {
220
221
// # 241 normalize null or undefined headers, in case nil or null string
222
// pass to native context
223
- headers = _.map(headers, (h) => h || '' );
+ headers = _.reduce(headers, (result, value, key) => {
224
+ result[key] = value || ''
225
+ return result
226
+ }, {});
227
228
// fetch from file system
229
if(URIUtil.isFileURI(url)) {
0 commit comments