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

Merge pull request #461 from theikkila/master

Add OPTIONS-method as a shortcut
This commit is contained in:
Nick Uraltsev
2017-03-26 21:06:24 -07:00
committed by GitHub
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ Axios.prototype.request = function request(config) {
};
// Provide aliases for supported request methods
utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
/*eslint func-names:0*/
Axios.prototype[method] = function(url, config) {
return this.request(utils.merge(config || {}, {