mirror of
https://github.com/tenrok/axios.git
synced 2026-06-08 17:22:34 +03:00
Fixing #385 - Keep defaults local to instance
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ axios.Axios = Axios;
|
||||
|
||||
// Factory for creating new instances
|
||||
axios.create = function create(instanceConfig) {
|
||||
return createInstance(utils.merge(defaults, instanceConfig));
|
||||
return createInstance(utils.mergeConfig(axios.defaults, instanceConfig || {}));
|
||||
};
|
||||
|
||||
// Expose Cancel & CancelToken
|
||||
|
||||
Reference in New Issue
Block a user