File tree 1 file changed +2
-7
lines changed
packages/next/src/server/stream-utils
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -419,13 +419,8 @@ function createStripDocumentClosingTagsTransform(): TransformStream<
419
419
// We assume these tags will go at together at the end of the document and that
420
420
// they won't appear anywhere else in the document. This is not really a safe assumption
421
421
// 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 )
429
424
}
430
425
431
426
controller . enqueue ( chunk )
You can’t perform that action at this time.
0 commit comments