2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-14 18:42:33 +03:00

fix: the error of calling extend to pass parameters #4844 (#4857)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
WD
2022-09-27 02:14:37 +08:00
committed by GitHub
parent 892c241773
commit daa426a01c
+1 -1
View File
@@ -30,7 +30,7 @@ function createInstance(defaultConfig) {
utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});
// Copy context to instance
utils.extend(instance, context, {allOwnKeys: true});
utils.extend(instance, context, null, {allOwnKeys: true});
// Factory for creating new instances
instance.create = function create(instanceConfig) {