Skip to content

Commit

Permalink
Convert the method parameter to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
luciy committed May 23, 2017
1 parent f31317a commit 8f5872d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/core/Axios.js
Expand Up @@ -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)) {
Expand Down

0 comments on commit 8f5872d

Please sign in to comment.