From daa426a01c6d15a2ba7028e9904989f71fed898e Mon Sep 17 00:00:00 2001 From: WD Date: Tue, 27 Sep 2022 02:14:37 +0800 Subject: [PATCH] fix: the error of calling extend to pass parameters #4844 (#4857) Co-authored-by: Jay --- lib/axios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/axios.js b/lib/axios.js index 2d1fde2..4e62242 100644 --- a/lib/axios.js +++ b/lib/axios.js @@ -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) {