Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: setHeader function returns after the first scope element (#507)
  • Loading branch information
Fox155 committed Jun 2, 2021
1 parent bfaa9b2 commit cb5e29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin.js
Expand Up @@ -11,7 +11,7 @@ const axiosExtra = {
for (const scope of Array.isArray(scopes) ? scopes : [ scopes ]) {
if (!value) {
delete this.defaults.headers[scope][name];
return
continue
}
this.defaults.headers[scope][name] = value
}
Expand Down

0 comments on commit cb5e29d

Please sign in to comment.