2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

fix(AxiosHeaders): fix AxiosHeaders conversion to an object during config merging (#6243)

Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
This commit is contained in:
Miroslav Petrov
2024-03-15 18:10:18 +02:00
committed by GitHub
parent 7320430aef
commit 2656612bc1
+1 -1
View File
@@ -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