Skip to content

Commit cdc58ca

Browse files
committed
CCR
1 parent c7330e6 commit cdc58ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/httpRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export async function httpRequest<T>(
2525
requestOptions.body = new URLSearchParams(options.form);
2626
}
2727

28-
if (!!requestOptions.body && requestOptions.duplex === undefined) {
28+
if (requestOptions.body !== undefined && requestOptions.duplex === undefined) {
2929
// Node's built-in fetch implementation (via undici) requires `duplex: 'half'`
3030
// when sending a request body in this code path, otherwise Node throws an error.
3131
requestOptions.duplex = 'half';

0 commit comments

Comments
 (0)