From 4ddba35f474bda2abe0f208946aa708bf85fba49 Mon Sep 17 00:00:00 2001 From: sw3205933776 <3205933776@qq.com> Date: Mon, 4 Aug 2025 11:27:17 +0800 Subject: [PATCH] fix: convert Node.js Buffer to Uint8Array for Response constructor --- electron/main/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/main/index.ts b/electron/main/index.ts index 905b71938..c155b2f02 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -962,7 +962,7 @@ app.whenReady().then(() => { break; } - return new Response(data, { + return new Response(new Uint8Array(data), { headers: { 'Content-Type': contentType, },