From fd99a1756e9b1298bb164b7903a644776eb51a61 Mon Sep 17 00:00:00 2001 From: hechang27-sprt Date: Fri, 26 Dec 2025 22:08:16 +0800 Subject: [PATCH] fix: more build configs --- plugs/http/axios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugs/http/axios.ts b/plugs/http/axios.ts index d368ca2..b376e57 100644 --- a/plugs/http/axios.ts +++ b/plugs/http/axios.ts @@ -37,7 +37,7 @@ _axios.interceptors.request.use( delEmpty(data); data.t = time; } - if (data != null && typeof data === "string") { + if (data != null && typeof data === "string" && config?.headers) { config.headers["Content-Type"] = "text/plain;charset=UTF-8"; } return config;