Remove ignoreBOM

Apparently the ignoreBOM option actually means "include the BOM". I've
added a test for this in my own repository, and will also be submitting
a pull request to MDN to clarify this in their documentation.
This commit is contained in:
valadaptive 2023-12-07 23:15:42 -05:00
parent b0e7b73a32
commit 699c369443
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
*/
class EventSourceStream {
constructor() {
const decoder = new TextDecoderStream('utf-8', { ignoreBOM: true });
const decoder = new TextDecoderStream('utf-8');
let streamBuffer = '';