Skip to content

Commit

Permalink
fix: setHeader function returns after the first scope element (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox155 authored 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
Original file line number Diff line number Diff line change
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.