Skip to content

Commit c31292f

Browse files
Fix stream closed check to ensure compatibility with different stream implementations
1 parent 951d34b commit c31292f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react_on_rails_pro/packages/node-renderer/tests/httpRequestUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export const getNextChunkInternal = (
237237

238238
stream.once('data', onData);
239239
stream.once('error', onError);
240-
if (stream.closed) {
240+
if ('closed' in stream && stream.closed) {
241241
onClose();
242242
} else {
243243
stream.once('close', onClose);

0 commit comments

Comments
 (0)