Improve legacy EOF detector: Must be at least >= size of SAUCE
This commit is contained in:
parent
b0d081ad04
commit
228d3e3ae7
|
@ -57,6 +57,9 @@ function sliceAtEOF(data, eofMarker) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(eof === data.length || eof < 128) {
|
||||||
|
return data;
|
||||||
|
}
|
||||||
return data.slice(0, eof);
|
return data.slice(0, eof);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue