2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-14 18:42:33 +03:00

Fixing custom instance defaults

closes #341
This commit is contained in:
Matt Zabriskie
2016-06-23 15:19:10 -06:00
parent 10eb238651
commit 46eee269da
3 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ var combineURLs = require('./../helpers/combineURLs');
* @param {Object} defaultConfig The default config for the instance
*/
function Axios(defaultConfig) {
this.defaults = utils.merge({}, defaultConfig);
this.defaults = utils.merge(defaults, defaultConfig);
this.interceptors = {
request: new InterceptorManager(),
response: new InterceptorManager()