mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Refactor and introduce deepMerge
This commit is contained in:
+2
-1
@@ -3,6 +3,7 @@
|
||||
var utils = require('./../utils');
|
||||
var InterceptorManager = require('./InterceptorManager');
|
||||
var dispatchRequest = require('./dispatchRequest');
|
||||
var mergeConfig = require('./mergeConfig');
|
||||
|
||||
/**
|
||||
* Create a new instance of Axios
|
||||
@@ -32,7 +33,7 @@ Axios.prototype.request = function request(config) {
|
||||
config = config || {};
|
||||
}
|
||||
|
||||
config = utils.mergeConfig(this.defaults, config);
|
||||
config = mergeConfig(this.defaults, config);
|
||||
config.method = config.method ? config.method.toLowerCase() : 'get';
|
||||
|
||||
// Hook up interceptors middleware
|
||||
|
||||
Reference in New Issue
Block a user