Skip to content

Commit

Permalink
fix: set "duplex" to "half" when handling requests
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Jan 10, 2025
1 parent bc0e0a7 commit 3c76156
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node/setupRemoteServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ export class SetupRemoteServerApi
incoming.method !== 'HEAD' && incoming.method !== 'GET'
? (Readable.toWeb(incoming) as ReadableStream<unknown>)
: null,
// @ts-expect-error Missing Node.js types.
duplex: 'half'

Check failure on line 178 in src/node/setupRemoteServer.ts

View workflow job for this annotation

GitHub Actions / build (18)

Insert `,`

Check failure on line 178 in src/node/setupRemoteServer.ts

View workflow job for this annotation

GitHub Actions / build (20)

Insert `,`
})

for (const headerName in incoming.headersDistinct) {
Expand Down

0 comments on commit 3c76156

Please sign in to comment.