From 141591f4f11cefb2ea5b6d2430c72126f3f72b38 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Wed, 10 Jan 2024 11:35:40 +0800 Subject: [PATCH] Auto Submit --- umi.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/umi.js b/umi.js index 4e7493d296..b63de9e646 100644 --- a/umi.js +++ b/umi.js @@ -50580,7 +50580,8 @@ function request(url, option, flag, ismin) { if (newOptions.method == 'GET') { newOptions.headers = _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({ Accept: 'application/json', - 'Content-Type': 'application/json; charset=utf-8' + 'Content-Type': 'application/json; charset=utf-8', + _method: option.method.toUpperCase() }, newOptions.headers); if (options.params && parseParams(options.params)) url += '?' + parseParams(options.params); } else if (userParam.zzud) {