From ecd2fba6290ba917ab52b732c8c778f0c048581d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Tue, 4 Feb 2025 20:42:13 +0800 Subject: [PATCH] fix: #762 --- src/webui/src/api/Proxy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/src/api/Proxy.ts b/src/webui/src/api/Proxy.ts index aa5404ff..b5b14dc3 100644 --- a/src/webui/src/api/Proxy.ts +++ b/src/webui/src/api/Proxy.ts @@ -7,8 +7,8 @@ export const GetProxyHandler: RequestHandler = async (req, res) => { if (url && typeof url === 'string') { url = decodeURIComponent(url); const responseText = await RequestUtil.HttpGetText(url); - res.send(sendSuccess(res, responseText)); + return sendSuccess(res, responseText); } else { - res.send(sendError(res, 'url参数不合法')); + return sendError(res, 'url参数不合法'); } }; \ No newline at end of file