fix: convert Node.js Buffer to Uint8Array for Response constructor

This commit is contained in:
sw3205933776 2025-08-04 11:27:17 +08:00
parent 32f2c69ba1
commit 4ddba35f47

View file

@ -962,7 +962,7 @@ app.whenReady().then(() => {
break;
}
return new Response(data, {
return new Response(new Uint8Array(data), {
headers: {
'Content-Type': contentType,
},