From 7a355ff4327038bbac1c194b30b999fe66e009d9 Mon Sep 17 00:00:00 2001 From: Alfan Nur Fauzan Date: Wed, 7 Feb 2018 12:47:24 +0700 Subject: [PATCH] fix cannot send post method --- lib/core/Axios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/Axios.js b/lib/core/Axios.js index f1af3e7..d21edbc 100644 --- a/lib/core/Axios.js +++ b/lib/core/Axios.js @@ -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, {method: 'get'}, this.defaults, config); config.method = config.method.toLowerCase(); // Hook up interceptors middleware