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:
parent
b0e7b73a32
commit
699c369443
|
@ -3,7 +3,7 @@
|
||||||
*/
|
*/
|
||||||
class EventSourceStream {
|
class EventSourceStream {
|
||||||
constructor() {
|
constructor() {
|
||||||
const decoder = new TextDecoderStream('utf-8', { ignoreBOM: true });
|
const decoder = new TextDecoderStream('utf-8');
|
||||||
|
|
||||||
let streamBuffer = '';
|
let streamBuffer = '';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue