From 8f5872d8afdfe75c361e154d1eca6ae98c779e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=98=A5=E6=97=AD?= Date: Tue, 23 May 2017 15:30:58 +0800 Subject: [PATCH] Convert the method parameter to lowercase --- lib/core/Axios.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/core/Axios.js b/lib/core/Axios.js index 0eb4fecb41..57098533fd 100644 --- a/lib/core/Axios.js +++ b/lib/core/Axios.js @@ -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)) {