Skip to content

Commit

Permalink
minot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
narengogi committed Jan 2, 2025
1 parent 6b59590 commit 74095ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/streamHandlerUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ const enqueueFileContentAndUpdateOctetStreamBuffer = (
controller.enqueue(
new TextEncoder().encode(JSON.stringify(transformedLine))
);
controller.enqueue(new Uint8Array(Buffer.from('\r\n')));
buffer = buffer.slice(line.length + 1)[0];
controller.enqueue(new TextEncoder().encode('\r\n'));
buffer = buffer.slice(line.length + 1);
} catch (error) {
// this is not a valid json line, so we don't update the buffer
}
Expand Down

0 comments on commit 74095ff

Please sign in to comment.