Skip to content

Commit 91e786a

Browse files
authored
fix: [#1493] Fixes issue where the body of a ReadableStream was locked after being cloned
1 parent 1619714 commit 91e786a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/happy-dom/src/fetch/utilities/FetchBodyUtility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export default class FetchBodyUtility {
145145

146146
// Sets the body of the cloned request to the first pass through stream.
147147
// TODO: check id this is required as request should be read only object
148-
<ReadableStream>requestOrResponse.body == stream1;
148+
requestOrResponse.body = stream1;
149149

150150
// Returns the other stream as the clone
151151
return stream2;

0 commit comments

Comments
 (0)