Skip to content

Commit 08e3a29

Browse files
committed
fix body === null
1 parent 2b81037 commit 08e3a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/src/build/build-worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const CustomRequest = class extends globalThis.Request {
108108
console.log("CustomRequest", input);
109109
if (init) {
110110
delete init.cache;
111-
if (init.body.__node_stream__) {
111+
if (init.body?.__node_stream__ === true) {
112112
init.body = Readable.toWeb(init.body);
113113
}
114114
}

0 commit comments

Comments
 (0)