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

Convert the method parameter to lowercase

This commit is contained in:
杨春旭
2017-05-31 22:53:11 +08:00
parent d1278dfe35
commit e4e32120ce
2 changed files with 17 additions and 0 deletions
+1
View File
@@ -35,6 +35,7 @@ Axios.prototype.request = function request(config) {
}
config = utils.merge(defaults, this.defaults, { method: 'get' }, config);
config.method = config.method.toLowerCase();
// Support baseURL config
if (config.baseURL && !isAbsoluteURL(config.url)) {