Skip to content

Commit

Permalink
fix(AxiosHeaders): fix AxiosHeaders conversion to an object during co…
Browse files Browse the repository at this point in the history
…nfig merging (#6243)

Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
  • Loading branch information
petrovmiroslav and DigitalBrainJS committed Mar 15, 2024
1 parent 7320430 commit 2656612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/mergeConfig.js
Expand Up @@ -3,7 +3,7 @@
import utils from '../utils.js';
import AxiosHeaders from "./AxiosHeaders.js";

const headersToObject = (thing) => thing instanceof AxiosHeaders ? thing.toJSON() : thing;
const headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;

/**
* Config-specific merge-function which creates a new config-object
Expand Down

0 comments on commit 2656612

Please sign in to comment.