Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan-Arrowood committed Mar 18, 2024
1 parent ca12050 commit 42a0cad
Showing 1 changed file with 2 additions and 7 deletions.
Expand Up @@ -419,13 +419,8 @@ function createStripDocumentClosingTagsTransform(): TransformStream<
// We assume these tags will go at together at the end of the document and that
// they won't appear anywhere else in the document. This is not really a safe assumption
// but until we revamp our streaming infra this is a performant way to string the tags
let transformed = removeFromUint8Array(chunk, ENCODED_TAGS.CLOSED.BODY)
transformed = removeFromUint8Array(
transformed,
ENCODED_TAGS.CLOSED.HTML
)

controller.enqueue(transformed)
chunk = removeFromUint8Array(chunk, ENCODED_TAGS.CLOSED.BODY)
chunk = removeFromUint8Array(chunk, ENCODED_TAGS.CLOSED.HTML)
}

controller.enqueue(chunk)
Expand Down

0 comments on commit 42a0cad

Please sign in to comment.