Skip to content

Commit 2656612

Browse files
fix(AxiosHeaders): fix AxiosHeaders conversion to an object during config merging (#6243)
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
1 parent 7320430 commit 2656612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/core/mergeConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import utils from '../utils.js';
44
import AxiosHeaders from "./AxiosHeaders.js";
55

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

88
/**
99
* Config-specific merge-function which creates a new config-object

0 commit comments

Comments
 (0)