From ee47120a09ec4487d99f85817856e2c31ac98fee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E6=89=8D?= <1450941858@qq.com> Date: Thu, 26 Dec 2019 05:00:15 +0800 Subject: [PATCH] If this place is false, it will report an error, so you should delete the useless code. (#2458) --- lib/core/dispatchRequest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/dispatchRequest.js b/lib/core/dispatchRequest.js index b511101..c8267ad 100644 --- a/lib/core/dispatchRequest.js +++ b/lib/core/dispatchRequest.js @@ -37,7 +37,7 @@ module.exports = function dispatchRequest(config) { config.headers = utils.merge( config.headers.common || {}, config.headers[config.method] || {}, - config.headers || {} + config.headers ); utils.forEach(