From d332c8bcebb55d909978be152a66e0e286dd8b37 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Fri, 7 Nov 2025 19:54:00 -0800 Subject: [PATCH] Fix fetch body type error by returning ArrayBuffer from compression helper --- src/client/LocalServer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/LocalServer.ts b/src/client/LocalServer.ts index 24eed2bff..e250be225 100644 --- a/src/client/LocalServer.ts +++ b/src/client/LocalServer.ts @@ -235,7 +235,7 @@ export class LocalServer { } } -async function compress(data: string): Promise { +async function compress(data: string): Promise { const stream = new CompressionStream("gzip"); const writer = stream.writable.getWriter(); const reader = stream.readable.getReader(); @@ -264,5 +264,5 @@ async function compress(data: string): Promise { offset += chunk.length; } - return compressedData; + return compressedData.buffer; }