diff --git a/lib/core/Axios.js b/lib/core/Axios.js index 811cb36498..fb34aced66 100644 --- a/lib/core/Axios.js +++ b/lib/core/Axios.js @@ -35,7 +35,15 @@ Axios.prototype.request = function request(config) { } config = mergeConfig(this.defaults, config); - config.method = config.method ? config.method.toLowerCase() : 'get'; + + // Set config.method + if (config.method) { + config.method = config.method.toLowerCase(); + } else if (this.defaults.method) { + config.method = this.defaults.method.toLowerCase(); + } else { + config.method = 'get'; + } // Hook up interceptors middleware var chain = [dispatchRequest, undefined];