0👍
✅
try
'content-length': end - start + 1,
and this
let end = parts[1] ? parseInt(parts[1], 10) : stat.size - 1;
instead of
let end = parts[1] ? parseInt(parts[1], 10) : start + 10 * 1024 ** 2;
Source:stackexchange.com