Skip to content

Commit

Permalink
fix: the error of calling extend to pass parameters #4844 (#4857)
Browse files Browse the repository at this point in the history
Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
techbirds and jasonsaayman committed Sep 26, 2022
1 parent 892c241 commit daa426a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/axios.js
Expand Up @@ -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) {
Expand Down

0 comments on commit daa426a

Please sign in to comment.