From 1439c788a226d04869d23706f8a757b57621c8a6 Mon Sep 17 00:00:00 2001 From: Luke Hart <50547373+lohart13@users.noreply.github.com> Date: Tue, 11 Oct 2022 16:49:35 +1300 Subject: [PATCH] fix: get default headers from Axios instance --- lib/core/Axios.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/Axios.js b/lib/core/Axios.js index a7cf75c959..f749265fbf 100644 --- a/lib/core/Axios.js +++ b/lib/core/Axios.js @@ -62,8 +62,8 @@ class Axios { // Flatten headers const defaultHeaders = config.headers && utils.merge( - config.headers.common, - config.headers[config.method] + this.defaults.headers.common, + this.defaults.headers[config.method] ); defaultHeaders && utils.forEach(