From cdc077ec2562ff0ab1a899d9518d57cd0b136031 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Fri, 12 Jan 2024 11:56:05 +0800 Subject: [PATCH] Auto Submit --- umi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umi.js b/umi.js index 89a7a730bc..5211f6f3b5 100644 --- a/umi.js +++ b/umi.js @@ -50689,7 +50689,7 @@ function request(url, option, flag, ismin) { (0,_utils_util__WEBPACK_IMPORTED_MODULE_8__/* .setHeader */ .Ec)(newOptions, url); if (ismin) prefixUrl = ''; newOptions.headers["_method"] = newOptions.method; - newOptions.headers["HTTP_X_HTTP_METHOD_OVERRIDE"] = newOptions.method; + newOptions.headers["X-HTTP-Method-Override"] = newOptions.method; if (newOptions.method === "DELETE") newOptions.method = "POST"; return fetch(prefixUrl + url, newOptions).then(function (response) { return checkStatus(response, _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({