Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Commit

Permalink
Fix #229 immutable HTTP headers issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wkh237 committed Mar 19, 2017
1 parent 6b360d6 commit 327bbc6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,7 @@ function fetch(...args:any):Promise {

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

// fetch from file system
if(URIUtil.isFileURI(url)) {
Expand Down

0 comments on commit 327bbc6

Please sign in to comment.