diff --git a/apps/desktop-host/src/index.ts b/apps/desktop-host/src/index.ts index 39d2207044..e85badba04 100644 --- a/apps/desktop-host/src/index.ts +++ b/apps/desktop-host/src/index.ts @@ -193,6 +193,7 @@ function assetHandler(ctx: Context, projectDir: string): ConnectionFetchHandler return new Response(body, { headers: { 'content-type': MIME['.html'] ?? 'text/html; charset=utf-8' } }) } return { + requestBodyMode: () => 'buffered', async fetch(request): Promise { if (request.method !== 'GET' && request.method !== 'HEAD') return new Response(null, { status: 405 }) const url = new URL(request.url) @@ -221,6 +222,7 @@ function assetHandler(ctx: Context, projectDir: string): ConnectionFetchHandler function remoteStreamHandler(ctx: Context): ConnectionFetchHandler { return { + requestBodyMode: () => 'buffered', async fetch(request): Promise { if (request.method !== 'POST') return new Response(null, { status: 405 }) const gateway = ctx.get('typertGateway')