Skip to content

Commit

Permalink
Merge a622a30 into 07a7b7c
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilevich committed Aug 28, 2017
2 parents 07a7b7c + a622a30 commit b8de13e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/Axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions lib/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ var defaults = {
return data;
}],

method: 'get',

timeout: 0,

xsrfCookieName: 'XSRF-TOKEN',
Expand Down

0 comments on commit b8de13e

Please sign in to comment.