Skip to content

Commit 42a0cad

Browse files
fix bug
1 parent ca12050 commit 42a0cad

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/next/src/server/stream-utils/node-web-streams-helper.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -419,13 +419,8 @@ function createStripDocumentClosingTagsTransform(): TransformStream<
419419
// We assume these tags will go at together at the end of the document and that
420420
// they won't appear anywhere else in the document. This is not really a safe assumption
421421
// but until we revamp our streaming infra this is a performant way to string the tags
422-
let transformed = removeFromUint8Array(chunk, ENCODED_TAGS.CLOSED.BODY)
423-
transformed = removeFromUint8Array(
424-
transformed,
425-
ENCODED_TAGS.CLOSED.HTML
426-
)
427-
428-
controller.enqueue(transformed)
422+
chunk = removeFromUint8Array(chunk, ENCODED_TAGS.CLOSED.BODY)
423+
chunk = removeFromUint8Array(chunk, ENCODED_TAGS.CLOSED.HTML)
429424
}
430425

431426
controller.enqueue(chunk)

0 commit comments

Comments
 (0)