From 3c76156efe769f6d9406314909e82070f90d8649 Mon Sep 17 00:00:00 2001 From: Artem Zakharchenko Date: Fri, 10 Jan 2025 19:06:55 +0100 Subject: [PATCH] fix: set "duplex" to "half" when handling requests --- src/node/setupRemoteServer.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node/setupRemoteServer.ts b/src/node/setupRemoteServer.ts index f86bb0f72..f7dfcc166 100644 --- a/src/node/setupRemoteServer.ts +++ b/src/node/setupRemoteServer.ts @@ -174,6 +174,8 @@ export class SetupRemoteServerApi incoming.method !== 'HEAD' && incoming.method !== 'GET' ? (Readable.toWeb(incoming) as ReadableStream) : null, + // @ts-expect-error Missing Node.js types. + duplex: 'half' }) for (const headerName in incoming.headersDistinct) {