2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

allowing default method for an instance

This commit is contained in:
ahmed ayoub
2017-10-10 21:17:37 +02:00
parent 26b06391f8
commit 6566598603
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ Axios.prototype.request = function request(config) {
}, arguments[1]);
}
config = utils.merge(defaults, this.defaults, { method: 'get' }, config);
config = utils.merge(defaults, this.defaults, config);
config.method = config.method.toLowerCase();
// Hook up interceptors middleware