Skip to content

Commit

Permalink
fix: get default headers from Axios instance
Browse files Browse the repository at this point in the history
  • Loading branch information
lohart13 committed Oct 11, 2022
1 parent 7cce707 commit 1439c78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/Axios.js
Expand Up @@ -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(
Expand Down

0 comments on commit 1439c78

Please sign in to comment.