Skip to content

Commit 048550a

Browse files
remove unnecessary duplex options
1 parent bd93260 commit 048550a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/server/auth-client.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,10 +2374,6 @@ export class AuthClient {
23742374
method: clonedReq.method,
23752375
headers,
23762376
body: bodyBuffer,
2377-
// @ts-expect-error duplex is not known, while we do need it for sending streams as the body.
2378-
// As we are receiving a request, body is always exposed as a ReadableStream when defined,
2379-
// so setting duplex to 'half' is required at that point.
2380-
duplex: bodyBuffer ? "half" : undefined
23812377
},
23822378
{ scope: options.scope, audience: options.audience }
23832379
);

0 commit comments

Comments
 (0)