File tree 1 file changed +2
-3
lines changed
packages/next/src/server/stream-utils
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -444,7 +444,6 @@ export function createRootLayoutValidatorStream(): TransformStream<
444
444
> {
445
445
let foundHtml = false
446
446
let foundBody = false
447
-
448
447
let content = new Uint8Array ( 0 )
449
448
return new TransformStream ( {
450
449
async transform ( chunk , controller ) {
@@ -453,13 +452,13 @@ export function createRootLayoutValidatorStream(): TransformStream<
453
452
if ( ! foundHtml || ! foundBody ) {
454
453
if (
455
454
! foundHtml &&
456
- indexOfUint8Array ( content , ENCODED_TAGS . OPENING . HTML )
455
+ indexOfUint8Array ( content , ENCODED_TAGS . OPENING . HTML ) > - 1
457
456
) {
458
457
foundHtml = true
459
458
}
460
459
if (
461
460
! foundBody &&
462
- indexOfUint8Array ( content , ENCODED_TAGS . OPENING . BODY )
461
+ indexOfUint8Array ( content , ENCODED_TAGS . OPENING . BODY ) > - 1
463
462
) {
464
463
foundBody = true
465
464
}
You can’t perform that action at this time.
0 commit comments