mirror of
https://github.com/tenrok/axios.git
synced 2026-06-14 18:42:33 +03:00
Fixing bug with custom intances and global defaults
This commit is contained in:
+3
-3
@@ -10,10 +10,10 @@ var combineURLs = require('./../helpers/combineURLs');
|
||||
/**
|
||||
* Create a new instance of Axios
|
||||
*
|
||||
* @param {Object} defaultConfig The default config for the instance
|
||||
* @param {Object} instanceConfig The default config for the instance
|
||||
*/
|
||||
function Axios(defaultConfig) {
|
||||
this.defaults = utils.merge(defaults, defaultConfig);
|
||||
function Axios(instanceConfig) {
|
||||
this.defaults = instanceConfig;
|
||||
this.interceptors = {
|
||||
request: new InterceptorManager(),
|
||||
response: new InterceptorManager()
|
||||
|
||||
Reference in New Issue
Block a user