Skip to content

Commit 327bbc6

Browse files
committed
Fix wkh237#229 immutable HTTP headers issue
1 parent 6b360d6 commit 327bbc6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,7 @@ function fetch(...args:any):Promise {
220220

221221
// # 241 normalize null or undefined headers, in case nil or null string
222222
// pass to native context
223-
_.each(headers, (h,i) => {
224-
headers[i] = h || ''
225-
});
223+
headers = _.map(headers, (h) => h || '' );
226224

227225
// fetch from file system
228226
if(URIUtil.isFileURI(url)) {

0 commit comments

Comments
 (0)