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

Commit

Permalink
Merge pull request #1006 from atomrc/fetch_headers
Browse files Browse the repository at this point in the history
fix adding custom headers with the browser's fetch
  • Loading branch information
assaf committed Jan 14, 2016
2 parents 6348695 + 0ad3a57 commit 075eee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fetch.js
Expand Up @@ -25,7 +25,7 @@ class Headers {
if (init instanceof Headers || init instanceof Array)
for (let [name, value] of init)
this.append(name, value);
else if (init instanceof Object)
else if (typeof init === "object")
_.each(init, (value, name)=> {
this.append(name, value);
});
Expand Down

0 comments on commit 075eee5

Please sign in to comment.