From cb5e29dc61a22c6b45b90c245552f1fa2cb5719b Mon Sep 17 00:00:00 2001 From: Fox155 <40307702+Fox155@users.noreply.github.com> Date: Wed, 2 Jun 2021 10:11:02 -0300 Subject: [PATCH] fix: setHeader function returns after the first scope element (#507) --- lib/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugin.js b/lib/plugin.js index 06c1a355..fc4493ea 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -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 }